Make final dl cache image FROM scratch

This commit is contained in:
BtbN
2023-06-21 00:38:32 +02:00
parent 73f17b7213
commit 0598fb3dba
5 changed files with 6 additions and 6 deletions

View File

@ -52,8 +52,8 @@ to_df "FROM base AS intermediate"
cat Dockerfile.dl.final >> "$TODF"
rm Dockerfile.dl.final
to_df "FROM base"
to_df "COPY --from=intermediate \$FFBUILD_DLDIR/. \$FFBUILD_DLDIR"
to_df "FROM scratch"
to_df "COPY --from=intermediate /opt/ffdl/. /"
if [[ "$TARGET" == "dl" && "$VARIANT" == "only" ]]; then
exit 0