Dockerfile 中有下面的一行 COPY 命令
COPY --from=cnblogs/i-web:latest /app/ClientApp/dist-legacy ./ClientApp/dist-legacy
当源文件夹不存在上,build 镜像会失败
failed to compute cache key: "/app/ClientApp/dist-legacy" not found: not found
请问如何让 COPY 命令自动忽略不存在的源文件夹
源文件夹名称之后加个星号 * 就可以了
COPY --from=cnblogs/i-web:latest /app/ClientApp/dist-legacy* ./ClientApp/dist-legacy