rog-golang-buddies / golang-template-repository

Kickstarter repository for a golang service
Apache License 2.0
17 stars 7 forks source link

Add .dockerignore file #69

Open haani-niyaz opened 2 years ago

haani-niyaz commented 2 years ago

The current Dockerfile does a copy all via COPY . . without any filtering on what is in the working directory. We should add a .dockerignore file to eliminate bloat. The current landscape has many things that can be ignored:

.
├── Dockerfile
├── LICENSE
├── Makefile
├── README.md
├── bin
│   └── app
├── cmd
│   └── main.go
├── coverage.out
├── docs
│   ├── continuous-integration
│   │   ├── gitleaks.md
│   │   ├── golangci-lint.md
│   │   ├── goreleaser.md
│   │   ├── img
│   │   │   └── mkdocs-gh-pages.png
│   │   ├── mkdocs-material.md
│   │   ├── pre-commit.md
│   │   └── semantic-release.md
│   ├── index.md
│   └── quickstart.md
├── go.mod
└── mkdocs.yml

Acceptance Criteria

  1. Add a .dockerignore file to ignore docs, binaries, test artefacts, github actions etc.