Skip to content

Commit

Permalink
Dockerfile test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mumu-kun authored Oct 7, 2024
1 parent 116dbfc commit 996ec08
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
Expand Up @@ -11,7 +11,8 @@ RUN ./mvnw package -DskipTests -Dcheckstyle.skip=true
# Runtime stage
FROM openjdk:17-jdk-slim
WORKDIR /app
RUN rm .env
RUN [ -f .env ] && rm .env || echo ".env does not exist"
COPY .env.test2 .env
RUN echo "Contents of .env file:" && cat .env
COPY --from=build target/*.jar app.jar
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit 996ec08

Please sign in to comment.