Skip to content

Commit

Permalink
chore: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
POKUDING authored Feb 17, 2025
1 parent dd02302 commit ea3efeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM openjdk:21-jdk-slim AS builder
FROM openjdk:21-jdk-slim AS build

WORKDIR /app

COPY . .
COPY ./ ./

RUN chmod +x gradlew && ./gradlew build -x test
RUN ./gradlew clean build -x test

FROM openjdk:21-jdk-slim
WORKDIR /app

COPY --from=build /app/build/libs/*.jar app.jar

CMD ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit ea3efeb

Please sign in to comment.