Поправил Dockerfile
This commit is contained in:
parent
a413b41c67
commit
96eed922b1
@ -1,8 +1,6 @@
|
|||||||
FROM eclipse-temurin:17 as app-build
|
FROM eclipse-temurin:17 as app-build
|
||||||
ENV RELEASE=17
|
ENV RELEASE=17
|
||||||
|
|
||||||
RUN apt-get install binutils
|
|
||||||
|
|
||||||
WORKDIR /opt/build
|
WORKDIR /opt/build
|
||||||
COPY ./gitlab-app/target/gitlab-notification.jar ./application.jar
|
COPY ./gitlab-app/target/gitlab-notification.jar ./application.jar
|
||||||
|
|
||||||
@ -10,7 +8,6 @@ RUN java -Djarmode=layertools -jar application.jar extract
|
|||||||
RUN $JAVA_HOME/bin/jlink \
|
RUN $JAVA_HOME/bin/jlink \
|
||||||
--add-modules `jdeps --ignore-missing-deps -q -recursive --multi-release ${RELEASE} --print-module-deps -cp 'dependencies/BOOT-INF/lib/*' application.jar`,jdk.crypto.cryptoki \
|
--add-modules `jdeps --ignore-missing-deps -q -recursive --multi-release ${RELEASE} --print-module-deps -cp 'dependencies/BOOT-INF/lib/*' application.jar`,jdk.crypto.cryptoki \
|
||||||
--strip-java-debug-attributes \
|
--strip-java-debug-attributes \
|
||||||
--strip-native-debug-symbols objcopy=/usr/bin/objcopy \
|
|
||||||
--no-man-pages \
|
--no-man-pages \
|
||||||
--no-header-files \
|
--no-header-files \
|
||||||
--compress=2 \
|
--compress=2 \
|
||||||
|
Loading…
Reference in New Issue
Block a user