Dockerfile 649 B

12345678910111213141516171819202122232425262728
  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:12.22.3 as base
  5. WORKDIR /app
  6. COPY install_deps.sh /app
  7. RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
  8. ENTRYPOINT ["/bin/sh", "entrypoint.sh"]
  9. COPY entrypoint.sh /app
  10. FROM base as app
  11. #wildcard as some files may not be in all repos
  12. COPY package*.json npm-shrink*.json /app/
  13. RUN npm ci --quiet
  14. COPY . /app
  15. FROM base
  16. COPY --from=app /app /app
  17. RUN mkdir -p cache compiles db output \
  18. && chown node:node cache compiles db output
  19. CMD ["node", "--expose-gc", "app.js"]