Skip to content

Commit

Permalink
add :: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeh2926 committed Feb 1, 2024
1 parent f237a7e commit e09d5e0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM openjdk:17-jdk

ARG DB_URL
ENV DB_URL ${DB_URL}

ARG DB_USERNAME
ENV DB_USERNAME ${DB_USERNAME}

ARG DB_PASSWORD
ENV DB_PASSWORD ${DB_PASSWORD}

ARG ACCESS_KEY
ENV ACCESS_KEY ${ACCESS_KEY}

ARG REDIS_HOST
ENV REDIS_HOST ${REDIS_HOST}

ARG JAR_FILE=build/libs/*.jar

COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java", "-Dspring.profiles.active=doker", "-jar", "app.jar"]

0 comments on commit e09d5e0

Please sign in to comment.