This is a Node.js base image for Cloudy, based on the latest LTS version of node, running on Alpine Linux.
Create a Dockerfile
FROM ghcr.io/cloud-cli/node
ADD . /home/app
Build an app
docker build -t app-image .
docker run --rm app-image
Create a superstatic.json
file to add configurations
Add an entry to package.json
with the main
field pointing to the app's entrypoint
Having a index.js
present is enough to start the app. Also works with index.cjs
and index.mjs
If a Procfile
is present, foreman is used to start the processes.
If import-map.json
is defined in the app root folder, the same logic as Import Maps is used to load modules.