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 Dec 9, 2024
1 parent 153aa0a commit c651abd
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 c651abd

Please sign in to comment.