aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-09-08 23:30:46 +0000
committerterminaldweller <thabogre@gmail.com>2021-09-08 23:30:46 +0000
commitd2e15f26b049cce4a52deba2698ef44fd4ab2248 (patch)
tree8d0416f5efa7bb2a6e45160334ad2c9e040310f8 /Dockerfile
parentadded a codacy badge (diff)
downloadblog-d2e15f26b049cce4a52deba2698ef44fd4ab2248.tar.gz
blog-d2e15f26b049cce4a52deba2698ef44fd4ab2248.zip
https
Diffstat (limited to '')
-rw-r--r--Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 974e6b0..fd5dd0b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,10 @@
+FROM node:lts-alpine3.13 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 node:lts-alpine3.13
+COPY --from=certbuilder /certs/ /certs
COPY ./package.* /server/
RUN cd /server && npm install --production
COPY ./css /server/css/
@@ -6,4 +12,4 @@ COPY ./views /server/views/
COPY ./mds /server/mds/
COPY ./server.js /server/
ENTRYPOINT ["/server/server.js"]
-EXPOSE 3000
+EXPOSE 9000