Skip to content

Commit

Permalink
docker: remove git-objects from final docker image
Browse files Browse the repository at this point in the history
Removing git-objects, which are not needed, from final docker image, to make it
smaller. Some files still need to be there, because Etherpad at startup uses
them to discover its version number.
  • Loading branch information
ratopi authored and muxator committed Apr 23, 2020
1 parent 789dd7a commit 5fa4146
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
.hg

# Remove the git objects, logs, etc. to make final image smaller.
# Some files still need to be in the .git directory, because Etherpad at
# startup uses them to discover its version number.
.git/branches
.git/COMMIT_EDITMSG
.git/config
.git/description
.git/FETCH_HEAD
.git/hooks
.git/index
.git/info
.git/logs
.git/objects
.git/ORIG_HEAD
.git/packed-refs
.git/refs/remotes/
.gitignore

settings.json
src/node_modules

0 comments on commit 5fa4146

Please sign in to comment.