Skip to content

Commit

Permalink
.dockerignore: remove unnecessary files from Docker build context
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
schildbach committed Nov 10, 2024
1 parent 41f8a2f commit 0dac978
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.*
Dockerfile
docker-compose.yml

0 comments on commit 0dac978

Please sign in to comment.