How to COPY library files between stages of a multi-stage Docker build while preserving symlinks? How to COPY library files between stages of a multi-stage Docker build while preserving symlinks? docker docker

How to COPY library files between stages of a multi-stage Docker build while preserving symlinks?


This is more of a workaround than an answer.

You could tar the files, copy the tarball to the second container and then untar them.

Tar maintains symbolic links by default.