Closed voatsap closed 4 years ago
COPY files directly to root is bad idea, /bin/ - is linux dir, for instance. Also make many layers - bad too.
Need WORKDIR app/ COPY . ./
+.dockerignore file
And I think good to be not hardcode absolute path to files, but calculate it from ex. env.WORKDIR - it can help shellcheck see crossfile dependecies when developing
Improved version exist in #35
Add COPY to original Dockerfile (direct to master) Move all paths to direct ones "cd /terraform" "cd /kuberentes"