File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
kafka-java-liberty-sample Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ FROM gradle:jdk8-alpine as jdk
33COPY --chown=1000 . /usr/src/app
44WORKDIR /usr/src/app
55
6- RUN gradle -s --no-daemon assemble
6+ USER root
7+ RUN apk --no-cache add busybox-static \
8+ && gradle -s --no-daemon assemble
79
810FROM websphere-liberty:javaee8
911
12+ COPY --from=jdk /bin/busybox.static /bin/unzip
1013COPY --from=jdk --chown=1001:0 /usr/src/app/target/defaultServer/apps/EventStreamsLibertyApp.war /tmp
1114COPY --from=jdk --chown=1001:0 /usr/src//app/target/defaultServer/server.xml /config/server.xml
1215
13- RUN unzip -q /tmp/EventStreamsLibertyApp.war \
16+ RUN mkdir -p /opt/ibm/wlp/usr/servers/defaultServer/apps/EventStreamsLibertyApp.war \
17+ && unzip -q /tmp/EventStreamsLibertyApp.war \
1418 -d /opt/ibm/wlp/usr/servers/defaultServer/apps/EventStreamsLibertyApp.war \
1519 && chmod -R a+rwX /opt/ibm/wlp/usr/servers/defaultServer/apps/EventStreamsLibertyApp.war
You can’t perform that action at this time.
0 commit comments