Dockerfiles are fundamental tools for developers working with Docker, serving as a blueprint for creating Docker images. Learn about new Dockerfile (v1.7.0) capabilities and how you can leverage them in your projects to further optimize your Docker workflows.
Wow, the
COPYdirective got a lot more powerful. I’ve been waiting for the--parentflag for years, while the--excludeargument is also a nice touch. Didn’t know of the/./pivot point before, but that’s handy.Before this, I’ve just been using a intermediary leaf stage within a multi-stage build process to copy the build context and filter the dependency lock files of the entire super project into a matching parent structure that I could then deterministically copy from.