Dockerfile 1019 B

1234567891011121314151617181920212223242526272829303132
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/overleaf/internal/
  4. FROM node:20.18.0 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. # Google Cloud Storage needs a writable $HOME/.config for resumable uploads
  11. # (see https://googleapis.dev/nodejs/storage/latest/File.html#createWriteStream)
  12. RUN mkdir /home/node/.config && chown node:node /home/node/.config
  13. FROM base AS app
  14. COPY package.json package-lock.json /overleaf/
  15. COPY services/clsi/package.json /overleaf/services/clsi/
  16. COPY libraries/ /overleaf/libraries/
  17. COPY patches/ /overleaf/patches/
  18. RUN cd /overleaf && npm ci --quiet
  19. COPY services/clsi/ /overleaf/services/clsi/
  20. FROM app
  21. RUN mkdir -p cache compiles output \
  22. && chown node:node cache compiles output
  23. CMD ["node", "--expose-gc", "app.js"]