Last active
June 12, 2025 18:12
-
-
Save jenlampton/9160e892d6712c00a176d896052202c7 to your computer and use it in GitHub Desktop.
tugboat-node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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