Dockerfile 939 B

123456789101112131415161718192021222324252627282930
  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:16.17.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. # Google Cloud Storage needs a writable $HOME/.config for resumable uploads
  9. # (see https://googleapis.dev/nodejs/storage/latest/File.html#createWriteStream)
  10. RUN mkdir /home/node/.config && chown node:node /home/node/.config
  11. FROM base as app
  12. COPY package.json package-lock.json /overleaf/
  13. COPY services/spelling/package.json /overleaf/services/spelling/
  14. COPY libraries/ /overleaf/libraries/
  15. RUN cd /overleaf && npm ci --quiet
  16. COPY services/spelling/ /overleaf/services/spelling/
  17. FROM app
  18. RUN mkdir -p cache \
  19. && chown node:node cache
  20. USER node
  21. CMD ["node", "--expose-gc", "app.js"]