aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-03-04 09:51:10 +0000
committerterminaldweller <thabogre@gmail.com>2022-03-04 09:51:10 +0000
commitaa5eb67aba781df6c2109202980361f2dcbc2528 (patch)
treec90ad1dc64e7b9548c008a9e8a58b5594a719620 /Dockerfile
parenta working dockerfile (diff)
downloadmdrtl-aa5eb67aba781df6c2109202980361f2dcbc2528.tar.gz
mdrtl-aa5eb67aba781df6c2109202980361f2dcbc2528.zip
added a new doc class, added self-signed certs to the docker image
Diffstat (limited to '')
-rw-r--r--Dockerfile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index a421feb..360e67d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,10 @@
+FROM alpine:3.15 as certbuilder
+RUN apk add openssl
+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/