Skip to content

Commit

Permalink
Chore: Dockerfile μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
saokiritoni authored Nov 4, 2024
1 parent a0f1fb7 commit 8c821a6
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
# κΈ°μ‘΄ Dockerfile μ˜ˆμ‹œ
FROM bellsoft/liberica-openjdk-alpine:17

# μž‘μ—… 디렉터리 μ„€μ •
WORKDIR /app

# application.yml을 λ³΅μ‚¬ν•©λ‹ˆλ‹€
COPY src/resources/application.yml /app/resources/application.yml

# JAR 파일 볡사
COPY build/libs/app.jar /app/app.jar

# μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μ‹€ν–‰
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
ARG JAR_FILE=build/libs/osori-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 comments on commit 8c821a6

Please sign in to comment.