diff --git a/Dockerfile b/Dockerfile index 2bfce41..5094e20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]