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

Add .Dockerignore file #44

Open
luisgc93 opened this issue Oct 27, 2021 · 2 comments
Open

Add .Dockerignore file #44

luisgc93 opened this issue Oct 27, 2021 · 2 comments

Comments

@luisgc93
Copy link
Owner

luisgc93 commented Oct 27, 2021

This will avoid sending unnecessary files to docker:

https://docs.docker.com/engine/reference/builder/#dockerignore-file

https://www.tutorialspoint.com/using-dockerignore-file

@luisgc93
Copy link
Owner Author

Also move the COPY . /code/ line to the bottom of the dockerfile, after the requirements have been installed. This will prevent unwanted cache invalidations

@luisgc93
Copy link
Owner Author

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