Skip to content

Instantly share code, notes, and snippets.

@ohnotnow
Created January 24, 2020 16:04
Show Gist options
  • Save ohnotnow/3276ed65a4668a5b51be560339d4abad to your computer and use it in GitHub Desktop.
Save ohnotnow/3276ed65a4668a5b51be560339d4abad to your computer and use it in GitHub Desktop.
Arg/Env
FROM whatever
ARG GIT_URL
ENV GIT_URL=${GIT_URL}
RUN git clone "${GIT_URL}"
# docker build --build-arg GIT_URL=https://.... -t myimage .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment