quaint-piano-62770
06/24/2024, 9:07 AMdocker_image
target how can I specify additional contexts like this in the BUILD file?curved-television-6568
06/24/2024, 9:20 AMquaint-piano-62770
06/24/2024, 9:26 AMdocker build \
--build-arg ABC="***" \
-t my-project:latest \
--build-context "extra=${HOME}/.cofig/auth/" src/my-project/
and within the Dockerfile the additional build-context is used as
...
COPY --from=extra auth.json /root/.config/auth/auth.json
...
quaint-piano-62770
06/24/2024, 9:28 AMcurved-television-6568
06/24/2024, 10:53 AM