aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 233e0283651fb579d07365a4151f17fb4e537ce1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM alpine:3.18 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.18
COPY --from=certbuilder /certs/ /certs
COPY ./package.* /server/
RUN cd /server && npm install --production
COPY ./css /server/css/
COPY ./views /server/views/
COPY ./static /server/static/
COPY ./mds /server/mds/
COPY ./*.js /server/
ENTRYPOINT ["/server/server.js"]
EXPOSE 9000