Skip to content

Commit

Permalink
chore: update Dockerfile delete cp line
Browse files Browse the repository at this point in the history
  • Loading branch information
POKUDING authored Feb 17, 2025
1 parent 96b527c commit dd02302
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ COPY . .

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

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

FROM openjdk:21-jdk-slim
WORKDIR /app

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

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

0 comments on commit dd02302

Please sign in to comment.