Skip to content

Update Dockerfile #257

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

Closed
wants to merge 1 commit into from
Closed

Conversation

JermineHu
Copy link

The code ONBUILD COPY . /usr/src/app has been included requirements.txt file.

The code `ONBUILD COPY . /usr/src/app `  has been included requirements.txt file.
@yosifkit
Copy link
Member

Onbuild variants have been deprecated in docker-library/docs#911. Besides, the order of the COPY, RUN, COPY is on purpose, so that when code is changed that doesn't affect requirements.txt the user doesn't have to wait for the pip install again when rebuilding the image.

Related issue #196.

@yosifkit yosifkit closed this Jan 29, 2018
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

Successfully merging this pull request may close these issues.

2 participants