Table of Contents

Dockerfile - ARG instruction (argument)

About

ARG defines argument that can be passed by the build command line

Example

ARG VERSION=<Default Value>
# Output the value for the sake of the example
RUN echo $VERSION
docker build --build-arg VERSION=1.0 .