Correct ARG usage format

Report a typo

You are working with the Dockerfile shown below.

ARG VERSION
FROM ubuntu:$VERSION
 
LABEL author=HyperUser 

ENV HOST_FILE='demo.txt'
ENV IMAGE_DESTINATION="/tmp"
COPY $HOST_FILE $IMAGE_DESTINATION

ENTRYPOINT ["ls", "/tmp"]

What will happen if you build the image with the following command?

$ docker build --build-arg $VERSION=22.04 -t ubuntu:v2 .
Select one option from the list
___

Create a free account to access the full topic