Skip to content

Instantly share code, notes, and snippets.

@DerekChia
Created December 26, 2021 15:38
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 DerekChia/51a6f1253663a6376985343ff03a877f to your computer and use it in GitHub Desktop.
Save DerekChia/51a6f1253663a6376985343ff03a877f to your computer and use it in GitHub Desktop.
FROM ubuntu
ENV SOME_VAR=env-value
ARG SOME_VAR=arg-value
RUN echo "Build-time: SOME_VAR is set to ${SOME_VAR:-}"
CMD ["bash", "-c", "echo Run-time: SOME_VAR is set to ${SOME_VAR:-}"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment