Closed jkoritzinsky closed 1 week ago
I think you can define the arg outside a stage scope to have a single shared default value. You sill have to declare the ARG in each stage it is used. This will avoid having "/crossrootfs/arm" defined in multiple locations.
Example
ARG ROOTFS_DIR=/crossrootfs/arm
FROM stageA ARG ROOTFS_DIR
FROM stageB ARG ROOTFS_DIR
_Originally posted by @MichaelSimons in https://github.com/dotnet/dotnet-buildtools-prereqs-docker/pull/1065#discussion_r1606782931_
Example
ARG ROOTFS_DIR=/crossrootfs/arm
FROM stageA ARG ROOTFS_DIR
FROM stageB ARG ROOTFS_DIR
_Originally posted by @MichaelSimons in https://github.com/dotnet/dotnet-buildtools-prereqs-docker/pull/1065#discussion_r1606782931_