Created
November 6, 2022 16:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------ | |
# 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