Snippets / Dockerfile
.dockerignore
A sensible default .dockerignore for most app images.
dockerignorebuild-context
.dockerignore
# Dependencies get installed inside the image -- sending the host copy
# only bloats the build context and risks shipping host-specific binaries.
node_modules
# Git metadata and local-only files have no reason to reach the daemon.
.git
.gitignore
# Secrets must never end up inside an image layer, even temporarily.
.env
.env.*
*.md
Dockerfile
docker-compose*.yml
# Build output and test artifacts -- regenerated inside the image, not
# copied from a possibly-stale local build.
dist
coverage
.DS_Store
More dockerfile snippets