Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusted base images in multi-stage build file to make image arm64-compatible. #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading