Skip to content

Instantly share code, notes, and snippets.

@tonistiigi
Created April 10, 2017 18:22
Show Gist options
  • Save tonistiigi/9c2bff325b91884fdedde4c01809e528 to your computer and use it in GitHub Desktop.
Save tonistiigi/9c2bff325b91884fdedde4c01809e528 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