Skip to content

Instantly share code, notes, and snippets.

@gowizzard
Created February 22, 2023 08:03
Show Gist options
  • Save gowizzard/bda7719d87d19c8684c17a25b8c59054 to your computer and use it in GitHub Desktop.
Save gowizzard/bda7719d87d19c8684c17a25b8c59054 to your computer and use it in GitHub Desktop.
A small template of a .dockerignore file for a golang project.
# First we ignore all folders & files.
# After that we ignore the file types & more.
.github/
.idea/
.gitignore
LICENSE
*.md
*.yml
**/*_test.go
@gowizzard
Copy link
Author

.dockerignore

Here you will find a template in which all files that are not important for your Docker container are ignored. Of course, this list can be extended or shortened as desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment