Поправил Dockerfile
This commit is contained in:
parent
5e71fd2838
commit
ab2ba0aef9
@ -3,7 +3,7 @@ stages:
|
||||
- deploy
|
||||
|
||||
build:
|
||||
image: maven:3.8.4-openjdk-17
|
||||
image: maven:3.8.6-eclipse-temurin-17
|
||||
stage: build
|
||||
variables:
|
||||
MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository"
|
||||
|
@ -7,7 +7,8 @@ COPY ./gitlab-app/target/gitlab-notification.jar ./application.jar
|
||||
RUN java -Djarmode=layertools -jar application.jar extract
|
||||
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 \
|
||||
--strip-debug \
|
||||
--strip-java-debug-attributes \
|
||||
--strip-native-debug-symbols objcopy=/usr/bin/objcopy \
|
||||
--no-man-pages \
|
||||
--no-header-files \
|
||||
--compress=2 \
|
||||
|
Loading…
Reference in New Issue
Block a user