what is docker file code example
Example 1: docker ARG
$ docker build --build-arg some_variable_name=a_value
Example 2: docker file
# getting base image from ubuntu
FROM ubuntu:18.04
RUN apt-get update
CMD ["echo", "HEY from docker image"]
$ docker build --build-arg some_variable_name=a_value
# getting base image from ubuntu
FROM ubuntu:18.04
RUN apt-get update
CMD ["echo", "HEY from docker image"]