You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use multi-stage build to only have eclipse-temurin:21-jre-alpine
being used when running the app. Also don't copy the entire
target directory but rather just use the zip with only the
necessary files needed to run the application.
JIRA: LIGHTY-353
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
RUN cp target/lighty-network-topology-device-$VERSION.jar target/lighty-network-topology-device.jar
15
+
RUN unzip target/lighty-network-topology-device-$VERSION-bin.zip -d target/
16
+
17
+
RUN mv target/lighty-network-topology-device-$VERSION target/lighty-network-topology-device
18
+
RUN mv target/lighty-network-topology-device/lighty-network-topology-device-$VERSION.jar target/lighty-network-topology-device/lighty-network-topology-device.jar
0 commit comments