Created
January 18, 2024 19:00
-
-
Save qmacro/b0519de87c385d164a855b0d28aba641 to your computer and use it in GitHub Desktop.
Dockerfile heredoc test
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
# syntax=docker/dockerfile:1 | |
# Definition of 'false': 'does nothing, unsuccessfully' (i.e. emits an error exit code) | |
FROM alpine as old-way | |
RUN \ | |
echo hello && \ | |
false && \ | |
echo goodbye | |
FROM alpine as new-way | |
RUN <<TESTINGIMPLICITDOUBLEAMPERSAND | |
echo hello | |
false | |
echo goodbye | |
TESTINGIMPLICITDOUBLEAMPERSAND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building via the old way, i.e.
We see:
Building via the new way, i.e.
We see: