Add .dockerignore to keep build context small

This commit is contained in:
Wyatt Gill 2024-05-18 17:42:02 -05:00
parent 53a661861a
commit e3ad646bae

9
.dockerignore Normal file
View File

@ -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