2018-12-01 07:44:26 -08:00
|
|
|
FROM node:11
|
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
|
|
|
|
2018-12-01 07:44:26 -08:00
|
|
|
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
|
|
|
|
RUN npm install --production --silent && mv node_modules ../
|
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
|
|
|
|
EXPOSE 80
|
2019-08-19 07:49:21 -07:00
|
|
|
|
|
|
|
RUN mkdir -p /data/db
|
|
|
|
ENV DB_URL /data/db
|
|
|
|
|
|
|
|
RUN mkdir -p /data/sessions
|
|
|
|
ENV SESSION_STORE /data/sessions
|
|
|
|
|
|
|
|
ENV SECRET_DIRNAME /data
|
|
|
|
|
|
|
|
CMD npm start
|