Skip to content

Instantly share code, notes, and snippets.

@practicalli-johnny
Created November 6, 2022 16:32
Show Gist options
  • Save practicalli-johnny/36230953271cb0376a297d8a1d82ff6d to your computer and use it in GitHub Desktop.
Save practicalli-johnny/36230953271cb0376a297d8a1d82ff6d to your computer and use it in GitHub Desktop.
Docker ignore patterns for a Clojure project - explicitly ignoring specific files and directories
# Clojure file patterns to exclude from Docker image
# when using the COPY command
#
# Alternative: exclude everything and only include specific files and directories
# - https://gist.github.com/practicalli-john/b5db240801d9024184de626e42036800
# .cpcache/ classpaths are only relevant to use account and environment
# so local .cpcache different to that for Docker
.cpcache/
.nrepl-port
.clj-kondo/.cache/
.cljstyle
.lsp/
.rebel_readline_history
# Development Tool files
.dir-locals.el
.secretlintignore
megalinter-reports/
# Host OS files
.java-version
# version control
.git/
.github/
# archived files
*.tar
*.tgz
# SQL database dumps
dump*
*/dump*
*/*/dump*
# Clojure file patterns
# .cpcache/ classpaths are only relevant to use account and environment
# so local .cpcache different to that for Docker
.cpcache/
.nrepl-port
.clj-kondo/.cache/
.cljstyle
.lsp/
.rebel_readline_history
# Development Tool files
.dir-locals.el
.secretlintignore
megalinter-reports/
# Host OS files
.java-version
# version control
.git/
.github/
# archived files
*.tar
*.tgz
# SQL database dumps
dump*
*/dump*
*/*/dump*
# .cpcache/ classpaths are only relevant to use account and environment
# so local .cpcache different to that for Docker
.cpcache/
.nrepl-port
.clj-kondo/.cache/
.cljstyle
.lsp/
.rebel_readline_history
# Development Tool files
.dir-locals.el
.secretlintignore
megalinter-reports/
# Host OS files
.java-version
# version control
.git/
.github/
# archived files
*.tar
*.tgz
# SQL database dumps
dump*
*/dump*
*/*/dump*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment