Dockerfile 612 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. # Version: 1.3.5
  5. FROM node:10.19.0 as base
  6. WORKDIR /app
  7. COPY install_deps.sh /app
  8. RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
  9. ENTRYPOINT ["/bin/sh", "entrypoint.sh"]
  10. COPY entrypoint.sh /app
  11. FROM base as app
  12. #wildcard as some files may not be in all repos
  13. COPY package*.json npm-shrink*.json /app/
  14. RUN npm install --quiet
  15. COPY . /app
  16. RUN npm run compile:all
  17. FROM base
  18. COPY --from=app /app /app
  19. CMD ["node", "--expose-gc", "app.js"]