aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-03-16 05:47:37 +0000
committerterminaldweller <thabogre@gmail.com>2022-03-16 05:47:37 +0000
commit1d05064b590d119065495a6d9ce30ae2d4aab05d (patch)
treeb72546f16c7952060ea903b39ce19933f22fe884 /Dockerfile
parentadded a new doc class, added self-signed certs to the docker image (diff)
downloadmdrtl-1d05064b590d119065495a6d9ce30ae2d4aab05d.tar.gz
mdrtl-1d05064b590d119065495a6d9ce30ae2d4aab05d.zip
wip
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"]