Skip to content

Commit

Permalink
feat: dockerfile 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed May 27, 2024
1 parent 4f562f1 commit 77aada9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM amazoncorretto:17

ARG JAR_FILE=./build/libs/*.jar
COPY ${JAR_FILE} app.jar

ARG PROFILE=prod
ENV PROFILE=${PROFILE}

ENTRYPOINT ["java","-Dspring.profiles.active=${PROFILE}", "-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

0 comments on commit 77aada9

Please sign in to comment.