From ab2ba0aef98e6b76978af0cbeb29be5ed3fcaff6 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sun, 4 Dec 2022 12:33:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ada580f..eeb5118 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" diff --git a/Dockerfile b/Dockerfile index 1c3ba0a..c51f805 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \