Add .dockerignore to keep build context small
This commit is contained in:
parent
53a661861a
commit
e3ad646bae
1 changed files with 9 additions and 0 deletions
9
.dockerignore
Normal file
9
.dockerignore
Normal 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
|
Loading…
Add table
Reference in a new issue