From c651abd6db6e60b1b80789343f5262c080ca3e02 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sun, 10 Nov 2024 10:17:57 +0100 Subject: [PATCH] .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. --- .dockerignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..1186bdaf2 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.* +Dockerfile +docker-compose.yml