Skip to content

Commit

Permalink
[chore] #9 build docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
nykoh2001 committed Feb 9, 2024
1 parent 9e79ec6 commit 12ef8a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile-main
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM gradle:8.5-jdk17 AS builder
COPY . /usr/src
WORKDIR /usr/src
RUN gradle wrapper --gradle-version 8.5
RUN ./gradlew clean build -x test

FROM openjdk:17-jdk-alpine
COPY --from=builder /usr/src/build/libs/server-0.0.1-SNAPSHOT.jar /usr/app/app.jar
ENTRYPOINT ["java", "-jar", "/usr/app/app.jar"]

0 comments on commit 12ef8a2

Please sign in to comment.