Skip to content

Commit

Permalink
Optimize context sent for docker build (apache#17415)
Browse files Browse the repository at this point in the history
The `provider_packages` folder is not needed during docker build
and it often contains copied sources when building the provider
packages. Also _doctree folder is prepared during documentation
building. This makes `docker build` wait for a few seconds when
those directories have a lot of files.

Excluding those decreases docker build overhead significantly.
  • Loading branch information
potiuk authored Aug 4, 2021
1 parent 2938acd commit dfefc66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
!scripts/in_container
!scripts/docker

# Add provider packages to the context
!provider_packages

# Add tests and kubernetes_tests to context.
!tests
!kubernetes_tests
Expand Down Expand Up @@ -129,3 +126,4 @@ airflow/www/static/docs
# Exclude docs generated files
docs/_build/
docs/_api/
docs/_doctrees/

0 comments on commit dfefc66

Please sign in to comment.