Skip to content

Commit 11b4fce

Browse files
lpmi-13adrian-rpf
andauthored
Add dockerignore to clean up final image (#384)
## Points for consideration: Currently, the final base image has a bunch of things it doesn't need, including the entire .git folder. This commit adds a .dockerignore to keep the things we don't need out of the final image. ## What's changed? - fewer unneeded files in the final built image --------- Co-authored-by: Adrian Lansdown <adrian.lansdown@raspberrypi.org>
1 parent 4396d3d commit 11b4fce

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.dockerignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Version control
2+
.git
3+
.gitattributes
4+
.github
5+
.gitignore
6+
7+
# CI/CD
8+
.circleci
9+
.clabot
10+
11+
# Docker (no need to include itself)
12+
Dockerfile
13+
.dockerignore
14+
docker-compose.yml
15+
docker-compose.override.yml.example
16+
17+
# Editor / IDE
18+
.vscode
19+
.devcontainer
20+
21+
# Dev tooling
22+
.rspec
23+
.pryrc
24+
.ruby-lsp
25+
.DS_Store
26+
.rubocop.yml
27+
.rubocop_todo.yml
28+
.rubocop-https--*
29+
30+
# Documentation
31+
*.md
32+
LICENSE
33+
COPYRIGHT
34+
docs
35+
36+
# Environment
37+
.env.example
38+
39+
# Tests
40+
spec
41+
42+
# Runtime dirs (recreated at runtime)
43+
log
44+
tmp
45+
storage

0 commit comments

Comments
 (0)