Dockerfile 1.0 KB

123456789101112131415161718192021222324252627
  1. FROM sharelatex/sharelatex:5.5.1
  2. # https://github.com/overleaf/internal/pull/25944
  3. # Removed changes to services/web/frontend/js/features/ide-redesign/components/rail.tsx due to incompatibility with 5.5.1
  4. COPY pr_25944.patch .
  5. RUN patch -p1 < pr_25944.patch && rm pr_25944.patch
  6. # https://github.com/overleaf/internal/pull/26637
  7. # Removed changes to server-ce/test/create-and-compile-project.spec.ts and server-ce/test/helpers/compile.ts due to incompatibility with 5.5.1
  8. COPY pr_26637.patch .
  9. RUN patch -p1 < pr_26637.patch && rm pr_26637.patch
  10. # https://github.com/overleaf/internal/pull/26783
  11. COPY pr_26783.patch .
  12. RUN patch -p1 < pr_26783.patch && rm pr_26783.patch
  13. # https://github.com/overleaf/internal/pull/26697
  14. COPY pr_26697.patch .
  15. RUN patch -p1 < pr_26697.patch && rm pr_26697.patch
  16. # Apply security updates to base image
  17. RUN apt update && apt install -y linux-libc-dev \
  18. && unattended-upgrade --verbose --no-minimal-upgrade-steps \
  19. && rm -rf /var/lib/apt/lists/*
  20. # Recompile frontend assets
  21. RUN node genScript compile | bash