I have a node.js application which depends on phantom.js. Since both node and phantom.js are not exactly a breeze to set up, I created a Docker container which does this. Now how do I deploy updates of my application to this docker container running on our production server.
For me, there are two possibilities.
- Set up SSH and push my git repository directly into the Docker container
- Add a volume and update the repository outside the container
I tend to the latter, but I'm not sure there is a better way.
Thanks in advance!