[go: nahoru, domu]

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

Copy code as last step of the container build #28

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

lgeiger
Copy link
Contributor
@lgeiger lgeiger commented Jun 15, 2020

The code is the main part that changes during model development. Copying the code to the Docker image before installing the dependencies prevents caching of the dependencies since all Docker layers need to be rebuilt if a previous one changes.
This PR changes the order of the Docker file to copy the code as the last step so that dependencies only need to be reinstalled if the requirements.txt file changes. This speeds up local build times by a large amount since dependencies don't need to be reinstalled on every code change.

Copy link
Member
@pavithrasv pavithrasv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@pavithrasv pavithrasv merged commit 6ef50df into tensorflow:master Jun 23, 2020
@lgeiger lgeiger deleted the faster-docker-builds branch March 29, 2021 17:40
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.

None yet

2 participants