aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/cargo/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-02-17 16:07:22 +0000
committerterminaldweller <thabogre@gmail.com>2022-02-17 16:07:22 +0000
commit934d6b1e01bbdc4aec70fed21b092fa9094c7257 (patch)
treeb2b8231d89ce5e1851fb7af76ee0bbc0ae8af77b /terminaldweller.com/cargo/Dockerfile
parentbbox config for linux and freebsd (diff)
downloadscripts-934d6b1e01bbdc4aec70fed21b092fa9094c7257.tar.gz
scripts-934d6b1e01bbdc4aec70fed21b092fa9094c7257.zip
cargo
Diffstat (limited to 'terminaldweller.com/cargo/Dockerfile')
-rw-r--r--terminaldweller.com/cargo/Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/terminaldweller.com/cargo/Dockerfile b/terminaldweller.com/cargo/Dockerfile
new file mode 100644
index 0000000..6907039
--- /dev/null
+++ b/terminaldweller.com/cargo/Dockerfile
@@ -0,0 +1,7 @@
+FROM alpine:3.15 AS certbuilder
+RUN apk update && 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 nginx:mainline-alpine
+COPY --from=certbuilder /certs/ /certs