Skip to content

Instantly share code, notes, and snippets.

@JamesJJ
Last active May 14, 2019 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesJJ/224077352aa35642d9a2a4a4dabef44f to your computer and use it in GitHub Desktop.
Save JamesJJ/224077352aa35642d9a2a4a4dabef44f to your computer and use it in GitHub Desktop.
An example showing how to configure base image value once, use it in`FROM` and record it in a `LABEL`
ARG BASE_IMAGE=busybox:latest
FROM $BASE_IMAGE
ARG BASE_IMAGE
LABEL BASE_IMAGE="$BASE_IMAGE"
# other Dockerfile instructions . . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment