Skip to content

Instantly share code, notes, and snippets.

@jenlampton
Last active June 12, 2025 18:12
Show Gist options
  • Save jenlampton/9160e892d6712c00a176d896052202c7 to your computer and use it in GitHub Desktop.
Save jenlampton/9160e892d6712c00a176d896052202c7 to your computer and use it in GitHub Desktop.
tugboat-node
services:
# Configure a standard node webserver to host this site.
node:
# Use the most recent version of the tugboat node image. Specify version.
image: tugboatqa/node:22
# Open port 3000
#expose: 3000
# Run these commands to initialize the server, update it with any libraries and assets required, then build your site.
commands:
# Initialize the server.
init:
- curl -fsSL https://bun.sh/install | bash
# Load dependent libraries and assets to prepare the site for build.
update:
# Run the node.js installer to install the NextJS app and its dependencies.
- bun i
- bun run build
# Run any commands needed to build the static NextJS site.
build:
# Build the site.
- bun i
- bun run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment