diff options
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,6 @@ WORKDIR /certs RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert FROM gradle:7.3.3-jdk11-alpine AS builder -COPY --from=certbuilder /certs /certs WORKDIR /home/springapp COPY --chown=gradle:gradle ./gradlew /home/springapp/ COPY --chown=gradle:gradle ./settings.gradle.kts /home/springapp/ @@ -14,6 +13,7 @@ COPY --chown=gradle:gradle ./src /home/springapp/src RUN gradle bootJar --no-daemon FROM eclipse-temurin:11-jre-alpine +COPY --from=certbuilder /certs /certs WORKDIR /springapp COPY --from=builder /home/springapp/build/libs/src.jar ./src.jar ENTRYPOINT ["java", "-jar", "/springapp/src.jar"] |