-
-
Save tonistiigi/9c2bff325b91884fdedde4c01809e528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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