Dockerfile 588 B

1234567891011121314151617181920212223242526272829
  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. FROM base
  17. COPY --from=app /app /app
  18. CMD ["node", "--expose-gc", "app.js"]