Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xorwns118 authored Sep 24, 2024
1 parent d49ede9 commit eb303b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM openjdk:17-jdk-slim-buster
COPY ./build/libs/platform-0.0.1-SNAPSHOT.jar app.jar
COPY ./src/main/resources/.env /app/.env
EXPOSE 8080
ENV SPRING_PROFILES_ACTIVE=prod
ENTRYPOINT ["java", "-jar", "/app.jar"]
ENTRYPOINT ["java", "-jar", "/app.jar", "--spring.config.import=optional:file:/app/.env"]

0 comments on commit eb303b0

Please sign in to comment.