overleaf/services/web/Dockerfile
Alasdair Smith 26190da566 Merge pull request #2349 from overleaf/as-webpack-css
Compile CSS using webpack

GitOrigin-RevId: 489834038667dde572ea5d9b4b9392b362259a09
2019-11-28 10:39:09 +00:00

21 lines
332 B
Docker

FROM node:10.15.3 as app
WORKDIR /app
#wildcard as some files may not be in all repos
COPY package.json package-lock.json /app/
RUN npm install --quiet
COPY . /app
FROM node:10.15.3
COPY --from=app /app /app
WORKDIR /app
RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
USER node
CMD ["node", "--expose-gc", "app.js"]