Skip to content

Commit 36f78cc

Browse files
authored
devops(docker): exclude .git from the Docker build context (#2037)
1 parent 38e2ffc commit 36f78cc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎.dockerignore‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# The repository root is the Docker build context (see utils/docker/build.sh).
2-
# Keep registry credentials written by the release pipeline out of the images.
1+
# The repository root is the Docker build context (see utils/docker/build.sh),
2+
# and the image build copies all of it. Keep VCS metadata, registry credentials
3+
# and local environment files out of the build context.
4+
**/.git
35
**/.npmrc
6+
**/.env*
47
# Downloaded by publish_docker.sh after the first push.
58
utils/docker/oras

0 commit comments

Comments
 (0)