Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Dockerfile into some sub-dir, otherwise the *whole* directory will be tarballed and send to docker daemon? #2

Open
fzyzcjy opened this issue Sep 21, 2020 · 0 comments

Comments

@fzyzcjy
Copy link

fzyzcjy commented Sep 21, 2020

Hi thanks for this wonderful assignment! Docker tarballs and sends everything in the working directory to its Docker daemon. Thus, if one has written some code and compiled (thus lots of intermediate files) and trigger docker build, then he will accidentally tarballs all of the intermediate files (which can be large) and send to daemon, which can take some additional time.

Solution: For example, create a subfolder named image and put Dockerfile to image/Dockerfile. Then trigger docker build there, and almost nothing will need to be tarballed.

Just a tiny suggestion, of course not a big problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant