Hmm that’s a surprise: Dockerfile ‘ARG’ is superseded by an ENV of the same name, defined in a parent image:
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as first
ENV FOO=bar
FROM first as second
ARG FOO=baz
RUN echo FOO=$FOO # result: FOO=bar
- replies
- 0
- announces
- 0
- likes
- 0