overleaf/services/filestore/Dockerfile

25 lines
365 B
Docker
Raw Normal View History

2018-03-23 12:36:41 -04:00
FROM node:8.9.1 as app
2018-01-16 07:27:36 -05:00
2018-03-23 12:36:41 -04:00
COPY ./ /app
2018-01-16 07:27:36 -05:00
2018-03-23 12:36:41 -04:00
WORKDIR /app
2018-01-16 07:27:36 -05:00
2018-03-23 12:36:41 -04:00
RUN npm install
2018-03-23 12:14:30 -04:00
2018-01-16 07:27:36 -05:00
RUN npm run compile:all
FROM node:8.9.1
2018-03-23 12:36:41 -04:00
COPY --from=app /app /app
2018-01-16 07:27:36 -05:00
WORKDIR /app
2018-03-23 12:36:41 -04:00
# All app and node_modules will be owned by root.
# The app will run as the 'node' user, and so not have write permissions
# on any files it doesn't need.
RUN ./install_deps.sh
2018-03-23 13:12:37 -04:00
# USER node
2018-01-16 07:27:36 -05:00
CMD ["node","app.js"]