diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |