diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-16 05:47:37 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-16 05:47:37 +0000 |
commit | 1d05064b590d119065495a6d9ce30ae2d4aab05d (patch) | |
tree | b72546f16c7952060ea903b39ce19933f22fe884 /Dockerfile | |
parent | added a new doc class, added self-signed certs to the docker image (diff) | |
download | mdrtl-1d05064b590d119065495a6d9ce30ae2d4aab05d.tar.gz mdrtl-1d05064b590d119065495a6d9ce30ae2d4aab05d.zip |
wip
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"] |