An internal component for Nemesys. Based on the Node.js component that can be used to run any Node.js app.
Uses the official node Docker image.
Will run npm install when component is first initialized, and npm run dev when deployment is started.
Will build a production ready image. Image runs npm install & npm build when being created. Once the image runs, npm start is called.
- If you are using packages that use native libraries (like
node-canvase.g.), it is a good idea to switch theDockerfileandDockerfile.devto usenode:XXinstead ofnode:XX-slim. You can also add any missing libraries withRUN apt update && apt install -y <package>in the dockerfiles.