From 373ee58bfd9574703ec034d28a87fe57435a6410 Mon Sep 17 00:00:00 2001 From: "christopher.braun@telekom.de" Date: Fri, 10 Jan 2025 14:17:41 +0100 Subject: [PATCH] Adjusted base images in multi-stage build file to make image arm64-compatible. --- Dockerfile.multi-stage | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile.multi-stage b/Dockerfile.multi-stage index 8a67527..b4ffb67 100644 --- a/Dockerfile.multi-stage +++ b/Dockerfile.multi-stage @@ -8,7 +8,7 @@ # The final container is started with a non-root user. -FROM maven:3.9-eclipse-temurin-17-alpine AS build +FROM maven:3.9-eclipse-temurin-17 AS build RUN mkdir -p /usr/app WORKDIR /usr/app ADD . /usr/app @@ -16,14 +16,11 @@ ADD . /usr/app RUN mvn -f /usr/app/pom.xml clean package -DskipTests -FROM eclipse-temurin:17-jre-alpine +FROM eclipse-temurin:17-jre -RUN apk add --update \ +RUN apt-get install -y \ curl \ - && rm -rf /var/cache/apk/* - -RUN addgroup -g 1000 -S app -RUN adduser -u 1000 -D -H -S -G app app + && rm -rf /var/lib/apt/lists/* USER 1000:1000