overleaf/services/filestore/Dockerfile

25 lines
365 B
Text
Raw Normal View History

2018-03-23 16:36:41 +00:00
FROM node:8.9.1 as app
2018-01-16 12:27:36 +00:00
2018-03-23 16:36:41 +00:00
COPY ./ /app
2018-01-16 12:27:36 +00:00
2018-03-23 16:36:41 +00:00
WORKDIR /app
2018-01-16 12:27:36 +00:00
2018-03-23 16:36:41 +00:00
RUN npm install
2018-03-23 16:14:30 +00:00
2018-01-16 12:27:36 +00:00
RUN npm run compile:all
FROM node:8.9.1
2018-03-23 16:36:41 +00:00
COPY --from=app /app /app
2018-01-16 12:27:36 +00:00
WORKDIR /app
2018-03-23 16:36:41 +00: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 17:12:37 +00:00
# USER node
2018-01-16 12:27:36 +00:00
CMD ["node","app.js"]