Skip to content

Glossary: Next.js Beyond the Basics

.dockerignore

Also written: dockerignore

A file listing what `COPY . .` must skip, like .gitignore. It keeps node_modules, local databases and secrets out of the image.

Where the book teaches it

Related terms

DockerfileImage