aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 360e67d..35a9db4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]