Skip to content

Instantly share code, notes, and snippets.

@0xAhmed
Last active December 29, 2016 09:05
Show Gist options
  • Save 0xAhmed/6914b57b162121c6cc3ba44dec478396 to your computer and use it in GitHub Desktop.
Save 0xAhmed/6914b57b162121c6cc3ba44dec478396 to your computer and use it in GitHub Desktop.
Docker build: Using ARG
Sending build context to Docker daemon 1.2 MB
Step 1 : FROM busybox
---> 1efc1d465fd6
Step 2 : ARG app_version
---> Running in 94d310838e79
---> 576425d2c33e
Removing intermediate container 94d310838e79
Step 3 : RUN echo “Building $app_version”
---> Running in 7683d34558d1
“Building 1.0”
---> 243f4bafe500
Removing intermediate container 7683d34558d1
Successfully built 243f4bafe500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment