Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

simone-pignotti
Copy link

Hello,

I have added a very simple Dockerfile and docker-compose.yml based on the official node.js documentation.

  • The Dockerfile defines the building process (node:14 base image + npm install) and the entry point (npm start)
  • The docker-compose.yml mounts the folders public, routes and views from the host to the container, to allow more flexible addition of new data (note that the three folders are added also to .dockerignore, so they are not copied into the base image), and defines the port to bind (defined in .env)

Let me know if you have any questions and whether you are interested in merging this, I am going to test it more extensively during the next few weeks.

Cheers
Simone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant