Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
essential2189 authored Jan 22, 2024
1 parent dee5e85 commit 0a5d1d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ RUN ./gradlew build -x test --parallel --stacktrace
#######################################
FROM openjdk:17-alpine

ENV PROFILE local

# 빌더 이미지에서 JAR 파일 복사
COPY --from=builder /build/build/libs/*.jar /app.jar

# 8080 포트 노출
EXPOSE 8080

# 애플리케이션 실행
ENTRYPOINT ["java", "-jar", "/app.jar"]
ENTRYPOINT ["java", "-Dspring.profiles.active=${PROFILE}", "-jar", "/app.jar"]

0 comments on commit 0a5d1d3

Please sign in to comment.