Dockerfile 609 B

123456789101112131415161718192021222324
  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/spelling
  6. COPY services/spelling/install_deps.sh /overleaf/services/spelling/
  7. RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
  8. FROM base as app
  9. COPY services/spelling/package*.json /overleaf/services/spelling/
  10. RUN npm ci --quiet
  11. COPY services/spelling /overleaf/services/spelling
  12. FROM app
  13. RUN mkdir -p cache \
  14. && chown node:node cache
  15. USER node
  16. CMD ["node", "--expose-gc", "app.js"]