Skip to content

Commit

Permalink
Adjusted base images in multi-stage build file to make image arm64-co…
Browse files Browse the repository at this point in the history
…mpatible.
  • Loading branch information
ch-braun committed Jan 10, 2025
1 parent b5fedfc commit 373ee58
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile.multi-stage
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,19 @@
# 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

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

Expand Down

0 comments on commit 373ee58

Please sign in to comment.