-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add replacement of build args in Dockerfile FROM statements
- Loading branch information
1 parent
23445ce
commit c646e7f
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
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
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
9 changes: 9 additions & 0 deletions
9
core/src/test/resources/dockerfile-build-test/Dockerfile-from-buildarg
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG BUILD_IMAGE | ||
ARG BASE_IMAGE | ||
ARG BASE_IMAGE_TAG | ||
|
||
FROM ${BUILD_IMAGE} AS build | ||
COPY localfile.txt /test-build.txt | ||
|
||
FROM $BASE_IMAGE:${BASE_IMAGE_TAG} AS base | ||
COPY --from=build /test-build.txt /test.txt |