Skip to content

Commit

Permalink
build: Dockerfile 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
laigasus committed Nov 21, 2024
1 parent 7a91337 commit eca3b73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM gradle:8.11-jdk21-alpine AS builder

WORKDIR /app

COPY build.gradle settings.gradle /app/
COPY src /app/src

RUN gradle build -x test

FROM openjdk:21-slim

COPY --from=builder /app/build/libs/batch-order.jar .

ENTRYPOINT ["java", "-jar", "batch-order.jar"]

0 comments on commit eca3b73

Please sign in to comment.