Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use shallow clone from GitHub instead of copying local tree
We cannot use COPY since the user may have attempted to build mcjoin locally first, in which case config.status may likely be incompatible with our Alpine system. Also, this makes the Dockerfile more stand-alone. Signed-off-by: Joachim Nilsson <[email protected]>
- Loading branch information
e20bc28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This relies on github being up to build the project, why not just clean config.status when building in docker?
e20bc28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also hard to build in air-gapped environments where github may not be accessible.
e20bc28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to keep the Dockerfiles I keep in my projects download from GitHub. Local preferences may of course vary, but I cannot take every end user's specific needs into concern.