File tree Expand file tree Collapse file tree 6 files changed +13
-12
lines changed
Expand file tree Collapse file tree 6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 5252fi
5353if [ ! -z " $from " ]
5454then
55- buildCommand=" $buildCommand --build-arg IMAGE =$from "
55+ buildCommand=" $buildCommand --build-arg PARENT_IMAGE =$from "
5656fi
5757
5858buildCommand=" $buildCommand ."
Original file line number Diff line number Diff line change 1- ARG IMAGE =openliberty/open-liberty:kernel-slim-java8-openj9-ubi
2- FROM ${IMAGE} as staging
1+ ARG PARENT_IMAGE =openliberty/open-liberty:kernel-slim-java8-openj9-ubi
2+ FROM $PARENT_IMAGE as staging
33
44# Copy server config so springBootUtility can be downloaded by featureUtility in the next step
55COPY --chown=1001:0 server.xml /config/server.xml
@@ -14,7 +14,7 @@ RUN springBootUtility thin \
1414 --targetThinAppPath=/staging/myThinApp.jar \
1515 --targetLibCachePath=/staging/lib.index.cache
1616
17- FROM ${IMAGE}
17+ FROM $PARENT_IMAGE
1818COPY --chown=1001:0 server.xml /config/server.xml
1919
2020ARG VERBOSE=false
Original file line number Diff line number Diff line change 1- ARG IMAGE =openliberty/open-liberty:kernel-slim-ubi
2- FROM ${IMAGE}
1+ ARG PARENT_IMAGE =openliberty/open-liberty:kernel-slim-ubi
2+ FROM $PARENT_IMAGE
33
44ARG VERBOSE=false
55
Original file line number Diff line number Diff line change 1- ARG IMAGE =openliberty/open-liberty:kernel-slim-ubi
2- FROM ${IMAGE}
1+ ARG PARENT_IMAGE =openliberty/open-liberty:kernel-slim-ubi
2+ FROM $PARENT_IMAGE
33
44ARG VERBOSE=false
55
Original file line number Diff line number Diff line change 1- FROM openliberty/open-liberty:kernel-slim-ubi
1+ ARG PARENT_IMAGE=openliberty/open-liberty:kernel-slim-ubi
2+ FROM $PARENT_IMAGE
23
34# Add my app and config
45COPY --chown=1001:0 server.xml /config/
Original file line number Diff line number Diff line change 1- ARG IMAGE =openliberty/open-liberty:kernel-slim-java8-openj9-ubi
2- FROM ${IMAGE} as staging
1+ ARG PARENT_IMAGE =openliberty/open-liberty:kernel-slim-java8-openj9-ubi
2+ FROM $PARENT_IMAGE as staging
33
44# Copy server config so springBootUtility can be downloaded by featureUtility in the next step
55COPY --chown=1001:0 server.xml /config/server.xml
@@ -14,7 +14,7 @@ RUN springBootUtility thin \
1414 --targetThinAppPath=/staging/myThinApp.jar \
1515 --targetLibCachePath=/staging/lib.index.cache
1616
17- FROM ${IMAGE}
17+ FROM $PARENT_IMAGE
1818COPY --chown=1001:0 server.xml /config
1919
2020# This script will add the requested XML snippets to enable Liberty features and grow image to be fit-for-purpose using featureUtility
You can’t perform that action at this time.
0 commit comments