Skip to content

Commit

Permalink
chore: update dockerfile change image openjdk:21-jdk-slim
Browse files Browse the repository at this point in the history
  • Loading branch information
POKUDING authored Feb 17, 2025
1 parent 1b65afa commit 96b527c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfile → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jdk AS builder
FROM openjdk:21-jdk-slim AS builder
WORKDIR /app

COPY . .
Expand All @@ -7,7 +7,7 @@ RUN chmod +x gradlew && ./gradlew build -x test

RUN mkdir -p /app/build_output && cp build/libs/*.jar /app/build_output/app.jar

FROM eclipse-temurin:21-jre-slim
FROM openjdk:21-jdk-slim
WORKDIR /app

COPY --from=builder /app/build_output/app.jar app.jar
Expand Down

0 comments on commit 96b527c

Please sign in to comment.