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

Please avoid using COPY . #202

Open
frafra opened this issue Jul 29, 2021 · 0 comments
Open

Please avoid using COPY . #202

frafra opened this issue Jul 29, 2021 · 0 comments

Comments

@frafra
Copy link
Collaborator

frafra commented Jul 29, 2021

COPY . is a bad practice which should be avoided, especially when .dockerignore is missing. It causes to rebuild the whole Docker image just because an unrelated dot file is modified.

COPY . /usr/src/{{project_name}}/

@frafra frafra changed the title Please avoid COPY . Please avoid using COPY . Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant