or
Taking ownership of theenvironment
Small production environment offers a production-ready setup optimized for moderate throughput.
Knowledge Base
Bunapp
zerops-recipe-apps/bun-hello-world-appBase Image
Includes: Bun, npm, yarn, git, bunx.
NOT included: pnpm.
Gotchas
BUN_INSTALL: ./.bunfor build caching โ Zerops can only cache paths inside the project tree. Default~/.bunis outside it and gets lost between builds.- Use
bunxinstead ofnpxโnpxmay not resolve correctly in the Bun runtime. bun build --target bunonly works with pure-JS dependencies โ The prod setup bundles withbun buildwhich inlines all imports. This works for pure-JS packages (e.g.pg) but silently produces broken bundles for native addons (mysql2,bcrypt,sharp,canvas, etc.). The build exits 0 but the bundle fails at runtime or is empty. If your app uses native dependencies, skip bundling: usedeployFiles: [./]andstart: bun src/index.tsfor both dev and prod setups.

