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

chore: added dockerignore, splitted Dockerfile to enable layers caching #128

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

jLebioda
Copy link
Collaborator

@jLebioda jLebioda commented Feb 6, 2020

It does not affect traditional (non-docker) deployments, but optimizes Docker-based deployments.
What has been changed?

  1. Added .dockerignore file. It results in Docker ignoring the specified files on building of the container.
    For more details why it's important, see this short article
  2. Splitted copying files into the container into two steps, which result in 1-6x speedup in consequent container build time (if the container was built previously on the same machine, it will use the cached results from previous build, unless you change setup.py file)

@jLebioda jLebioda added the waiting-for-merge Issue has been implemented, waiting to be merged label Feb 6, 2020
@neoflex neoflex merged commit 95ee99b into develop Feb 24, 2020
@neoflex neoflex deleted the 122-improve-dockerfile branch February 24, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-merge Issue has been implemented, waiting to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants