Closed jpdown closed 2 years ago
This PR creates a Dockerfile and adds GitHub Actions to create containers automatically.
apk update
apk install
/data/
npm ci --only=production
.devcontainer
https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md https://snyk.io/blog/10-best-practices-to-containerize-nodejs-web-applications-with-docker/ https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
This PR creates a Dockerfile and adds GitHub Actions to create containers automatically.
TODO:
apk update
andapk install
on same lineapk install
in prod stage if possible/data/
in the container (use ENV and VOLUME directives)npm ci --only=production
.devcontainer
https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md https://snyk.io/blog/10-best-practices-to-containerize-nodejs-web-applications-with-docker/ https://docs.docker.com/develop/develop-images/dockerfile_best-practices/