4 ms·
You can use ENV to convert ARG into an environment variable which can be used in CMD through shell environment variable evaluation: FROM ubuntu:20.04
by bheadmaster 2y ago
You can use ENV to convert ARG into an environment variable which can be used in CMD through shell environment variable evaluation:
FROM ubuntu:20.04
ARG foo
ENV foo $foo
CMD ["/bin/sh", "-c", "echo $foo"]