bun-docker
Deploy a simple Bun HTTP server on Render
Bun is a JavaScript runtime that serves as a bundler, test runner, and package manager.
Prerequisites
Refer to the Bun documentation to install Bun.
Usage
bun install
To run this app locally, first run bun install
to install the dependencies.
bun dev
Run bun dev
or bun run dev
to start the server locally.
Running the app in dev uses the --hot
reload flag, which Bun uses to re-run changed files without restarting the bun
process.
If no PORT
environment variable is specified, the server will run on port 8081
. Visit http://localhost:8081 to view the app.
bun start
Run bun start
or bun run start
to start the server locally without the --hot
reload flag.
Deploy to Render
Use the official Bun Docker image to deploy this app to Render.
Manual deploy
- Fork this repo on GitHub or click Use this template.
- Create a new web service on Render, and give Render permission to access your new repo.
- Select Docker as your service's runtime.
That's it! Your web service will be live on your Render URL as soon as the build finishes.