christmas/Dockerfile
2020-11-03 20:16:23 -05:00

23 lines
No EOL
416 B
Docker

FROM node:15
ENV NODE_ENV production
WORKDIR /usr/src/app
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "patched-express-response.js", "./"]
RUN npm install --production --silent
COPY . .
ENV PORT 80
ENV DB_EXPOSE_PORT 8080
EXPOSE 80
RUN mkdir -p /data/dbs
ENV DB_PREFIX /data/dbs/
RUN mkdir -p /data/sessions
ENV SESSION_STORE /data/sessions
ENV SECRET_DIRNAME /data
CMD Dockerstart.sh