Config Files · 1 file

Sample .dockerignore File

.dockerignore keeps files out of the Docker build context. Our sample is realistic and valid for its tool, with fake hosts and secrets.

.dockerignore · 150 B

.dockerignore

A .dockerignore that keeps dependencies, build output, VCS data, secrets and local env files out of the build context. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

.dockerignore — first lines
# Sample .dockerignore — samplefiles.com
node_modules
dist
coverage
.git
.github
*.log
.env
.env.*
!.env.example
Dockerfile*
compose*.yaml
secrets/

File details

Size
150 B (150 bytes)
MIME type
text/plain
SHA-256
7be0080b145363b91fb277fa0833a900d31da48b85c921de21f1b1955df2230b
MD5
af935fc68fd41bebea3056a65a954a97

Download from the command line

curl -L -o .dockerignore https://files.samplefiles.com/config/dockerignore/.dockerignore

Or check the download in your browser with the checksum calculator.