Skip to content

Instantly share code, notes, and snippets.

@thaJeztah
Forked from tonistiigi/Dockerfile
Created March 8, 2018 22:49
Show Gist options
  • Save thaJeztah/a4beecff53fefb824ec253a609c297e6 to your computer and use it in GitHub Desktop.
Save thaJeztah/a4beecff53fefb824ec253a609c297e6 to your computer and use it in GitHub Desktop.
# supported in master
ARG COND=foo_eq_true
FROM busybox AS base
RUN touch /a
FROM base AS base_foo_eq_true
RUN touch /b
FROM base AS base_foo_eq_false
RUN touch /c
FROM base_${COND}
RUN touch /d
FROM busybox
RUN touch /a
IF foo_eq_true THEN
RUN touch /b
ELIF base_foo_eq_false THEN
RUN touch /c
FI
RUN touch /d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment