Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yeopyeop-82 committed Sep 9, 2024
1 parent 546866d commit 82bbdaa
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Base image로 OpenJDK 17 사용
FROM openjdk:17-jdk-slim

# JAR 파일을 복사할 경로를 지정
ARG JAR_FILE=golagola-0.0.1-SNAPSHOT.jar

COPY ${JAR_FILE} /app/app.jar

# 컨테이너가 실행될 때 JAR 파일을 실행하도록 설정
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
FROM openjdk:17-jdk
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
#COPY src/main/resources/keystore.p12 /app/keystore.p12
ENTRYPOINT ["java", "-Dspring.profiles.active=docker", "-jar", "app.jar"]

0 comments on commit 82bbdaa

Please sign in to comment.