christmas/Dockerfile

23 lines
416 B
Docker
Raw Normal View History

2020-11-02 20:25:29 -08:00
FROM node:15
2019-08-19 07:49:21 -07:00
2018-12-01 07:44:26 -08:00
ENV NODE_ENV production
WORKDIR /usr/src/app
2019-08-19 07:49:21 -07:00
2020-11-02 20:36:43 -08:00
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "patched-express-response.js", "./"]
2020-11-03 12:51:00 -08:00
RUN npm install --production --silent
2019-08-19 07:49:21 -07:00
2018-12-01 07:44:26 -08:00
COPY . .
2019-08-19 07:49:21 -07:00
2019-11-10 10:48:23 -08:00
ENV PORT 80
2020-11-03 17:16:23 -08:00
ENV DB_EXPOSE_PORT 8080
2019-11-10 10:48:23 -08:00
EXPOSE 80
2019-08-19 07:49:21 -07:00
2020-11-03 17:16:23 -08:00
RUN mkdir -p /data/dbs
ENV DB_PREFIX /data/dbs/
2019-08-19 07:49:21 -07:00
RUN mkdir -p /data/sessions
ENV SESSION_STORE /data/sessions
ENV SECRET_DIRNAME /data
2020-11-03 17:16:23 -08:00
CMD Dockerstart.sh