Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829
  1. FROM sharelatex/sharelatex:5.5.2
  2. # ../../bin/import_pr_patch.sh 27147 27173 27230 27240 27249 27257 27273 27397
  3. # Remove CE tests
  4. # Remove tests
  5. # Remove cloudbuild changes
  6. # Remove SaaS changes
  7. # Fixup package.json and toolbar-items.tsx
  8. # Fix cron paths
  9. COPY *.patch .
  10. RUN --mount=type=cache,target=/root/.cache \
  11. --mount=type=cache,target=/root/.npm \
  12. --mount=type=cache,target=/overleaf/services/web/node_modules/.cache,id=server-ce-webpack-cache \
  13. --mount=type=tmpfs,target=/tmp true \
  14. && bash -ec 'for p in *.patch; do echo "=== Applying $p ==="; patch -p1 < "$p" && rm $p; done' \
  15. && npm audit --audit-level=high \
  16. && node genScript compile | bash \
  17. && npm prune --omit=dev \
  18. && apt remove -y linux-libc-dev
  19. # ../../bin/import_pr_patch.sh 27476
  20. # Remove tests
  21. # Remove SaaS changes
  22. COPY pr_27476.patch-stage-2 .
  23. RUN patch -p1 < pr_27476.patch-stage-2 && rm pr_27476.patch-stage-2
  24. # Extra tweaks to output
  25. COPY pr_27397.patch-stage-2 .
  26. RUN patch -p1 < pr_27397.patch-stage-2 && rm pr_27397.patch-stage-2