Images and Dockerfile
Your own image: layers and cache, build stages, .dockerignore, build secrets
Your own image: layers and cache, build stages, .dockerignore, build secrets
COPY . . copies everything from the build directory into the image except what’s listed in .dockerignore: .env with passwords, .git with its whole history, node_modules built for the laptop’s OS.A build token goes through --secret, not ARGARG and ENV are no good for secrets: the value stays in the image, and everyone who pulled the image can see it.