You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we've discussed there are multiple approaches to bring files from a repository into a Docker image. The best approach is different depending on what the Dockerfile is used for.
How should Dockerfile in the repository root include source files?
Clone the repo when building the image
80%
COPY . .
0%
Must be run with a bind mount
0%
.gitignore the Dockerfile, and add a tool to generate the desired Dockerfile
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As we've discussed there are multiple approaches to bring files from a repository into a Docker image. The best approach is different depending on what the Dockerfile is used for.
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions