Node Base Image that is configured with different image tags for local and production. This image is opinionated, but not restrictive.
Dockerfile linksThis repository builds 2 variants of images: a local image and a production image.
The local image variant is used to run node in an isolated development environment on your local machine.
CMD is set to node app.js to run a development server.PORT is set to 9000 to align with Nullstone conventions to quickly attach nginx sidecar (example coming soon)ENTRYPOINT is set to a custom entrypoint script that does the following:
yarn install - Allows developer to run docker compose restart app to make changes to dependenciesPOSTGRES_URL is specified, set DB_ADAPTER=postgresql, DATABASE_URL=$POSTGRES_URLMYSQL_URL is specified, set DB_ADAPTER=mysql, DATABASE_URL=$MYSQL_URLThe production image variant uses node to run a node app in production mode.
PORT is set to 80ENTRYPOINT is set to a custom entrypoint script that does the following:
POSTGRES_URL is specified, set DB_ADAPTER=postgresql, DATABASE_URL=$POSTGRES_URLMYSQL_URL is specified, set DB_ADAPTER=mysql, DATABASE_URL=$MYSQL_URLContent type
Image
Digest
sha256:af9cc0cc1…
Size
52.6 MB
Last updated
over 1 year ago
docker pull nullstone/node