From e3ad646baee618e9b45624ce05b81939d863ac8b Mon Sep 17 00:00:00 2001 From: Wyatt Gill Date: Sat, 18 May 2024 17:42:02 -0500 Subject: [PATCH] Add .dockerignore to keep build context small --- .dockerignore | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..03da0ed --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +# https://docs.docker.com/build/building/context/#dockerignore-files +# Ignore all files by default +* + +# Only add necessary files to the Docker build context (Dockerfiles are always included implicitly) +!/internal/ +!/go.mod +!/go.sum +!main.go