File tree 6 files changed +13
-12
lines changed
6 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 52
52
fi
53
53
if [ ! -z " $from " ]
54
54
then
55
- buildCommand=" $buildCommand --build-arg IMAGE =$from "
55
+ buildCommand=" $buildCommand --build-arg PARENT_IMAGE =$from "
56
56
fi
57
57
58
58
buildCommand=" $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
3
3
4
4
# Copy server config so springBootUtility can be downloaded by featureUtility in the next step
5
5
COPY --chown=1001:0 server.xml /config/server.xml
@@ -14,7 +14,7 @@ RUN springBootUtility thin \
14
14
--targetThinAppPath=/staging/myThinApp.jar \
15
15
--targetLibCachePath=/staging/lib.index.cache
16
16
17
- FROM ${IMAGE}
17
+ FROM $PARENT_IMAGE
18
18
COPY --chown=1001:0 server.xml /config/server.xml
19
19
20
20
ARG 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
3
3
4
4
ARG VERBOSE=false
5
5
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
3
3
4
4
ARG VERBOSE=false
5
5
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
2
3
3
4
# Add my app and config
4
5
COPY --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
3
3
4
4
# Copy server config so springBootUtility can be downloaded by featureUtility in the next step
5
5
COPY --chown=1001:0 server.xml /config/server.xml
@@ -14,7 +14,7 @@ RUN springBootUtility thin \
14
14
--targetThinAppPath=/staging/myThinApp.jar \
15
15
--targetLibCachePath=/staging/lib.index.cache
16
16
17
- FROM ${IMAGE}
17
+ FROM $PARENT_IMAGE
18
18
COPY --chown=1001:0 server.xml /config
19
19
20
20
# 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