From 9ddc581285112872d56e2bc0fc3073f55c1259c3 Mon Sep 17 00:00:00 2001 From: polarctos Date: Wed, 11 Jun 2025 16:03:02 +0200 Subject: [PATCH] Add .dockerignore Exclude everything from Docker build context that is not used by COPY steps in the Dockerfile. This speeds up the container build on macOS, Windows or remote builders as less files and directories are copied over to the container builder. https://docs.docker.com/build/concepts/context/#dockerignore-files --- .dockerignore | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..69bf4bd --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +# Exclude everything from context that is not used by COPY steps in the Dockerfile +* +!/target/s3proxy +!/src/main/resources/run-docker-container.sh