Skip to content

Commit 0dac978

Browse files
committed
.dockerignore: remove unnecessary files from Docker build context
This removes hidden files (including the git configuration and history!) and the docker/compose files. These files are not needed for building and running and bloat the image, can leak sensitive information and invalidate the build cache.
1 parent 41f8a2f commit 0dac978

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.*
2+
Dockerfile
3+
docker-compose.yml

0 commit comments

Comments
 (0)