Skip to content

Commit

Permalink
chore: Create dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
POKUDING authored Feb 17, 2025
1 parent d3d365a commit 601c1f1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM eclipse-temurin:21-jdk AS builder
WORKDIR /app

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 eclipse-temurin:21-jre-slim
WORKDIR /app

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

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

0 comments on commit 601c1f1

Please sign in to comment.