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
# Sample .dockerignore — samplefiles.com
node_modules
dist
coverage
.git
.github
*.log
.env
.env.*
!.env.example
Dockerfile*
compose*.yaml
secrets/File details
Download from the command line
curl -L -o .dockerignore https://files.samplefiles.com/config/dockerignore/.dockerignorewget https://files.samplefiles.com/config/dockerignore/.dockerignorehttps://files.samplefiles.com/config/dockerignore/.dockerignoreprintf '%s %s\n' 7be0080b145363b91fb277fa0833a900d31da48b85c921de21f1b1955df2230b .dockerignore | shasum -a 256 -cOr check the download in your browser with the checksum calculator.