Closed pascalandy closed 5 years ago
Cool. But I don't get the need of the base step with only the app directory creation... If then it is created even in all other steps. The base can maybe the step you named dependencies?
But yeah... I think it is easy to understand the docker file in this way and we can maybe gain some other bytes :)
I didn't give it a real thought yet. But as a template, I think it makes sense.
Don't know yet if it applies to our project thought :p If it sparks something in our heads cool. Else just drop it :p
I think we can further clean the Dockerfile for readability since @mmornati suggested using USER
for commands that require to be ran on node
on this Pull Request
This is the idea.
4 stages
Inspired by: https://blog.hasura.io/an-exhaustive-guide-to-writing-dockerfiles-for-node-js-web-apps-bbee6bd2f3c4