Skip to content

Instantly share code, notes, and snippets.

@practicalli-johnny
Created November 6, 2022 16:25
Show Gist options
  • Save practicalli-johnny/b5db240801d9024184de626e42036800 to your computer and use it in GitHub Desktop.
Save practicalli-johnny/b5db240801d9024184de626e42036800 to your computer and use it in GitHub Desktop.
Docker ignore file and directory patterns - excluding everything and explicitly including files and directories needed for a build
# ------------------------
# Docker Ignore file patterns
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
#
# Ignore all local files when using the COPY command in Dockerfile
# except patterns starting with !
# reducing the amount of time required to copy files
# ------------------------
# ------------------------
# Ignore all files
*
# ------------------------
# Include Clojure code and config
!deps.edn
!Makefile
!src/
!test/
!test-data/
!resources/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment