Dockerfile 679 B

12345678910111213141516171819202122232425
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/sharelatex/sharelatex-dev-environment
  4. FROM node:14.18.1 as base
  5. WORKDIR /overleaf/services/clsi
  6. COPY services/clsi/install_deps.sh /overleaf/services/clsi/
  7. RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
  8. ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
  9. COPY services/clsi/entrypoint.sh /
  10. FROM base as app
  11. COPY services/clsi/package*.json /overleaf/services/clsi/
  12. RUN npm ci --quiet
  13. COPY services/clsi /overleaf/services/clsi
  14. FROM app
  15. RUN mkdir -p cache compiles output \
  16. && chown node:node cache compiles output
  17. CMD ["node", "--expose-gc", "app.js"]