mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
* [clsi] initial implementation of compile from history * [clsi] copy changes * [saas-e2e] extend test case with nested folder * [saas-e2e] add test case for tracked changes * [web] fix accumulating changes from multiple chunks * [web] optimize size check for compile request payload * [clsi] deduplicate globalBlobs * [clsi] add validation for request body details * [clsi] add metrics for compile from history * [clsi] download binary files concurrently * [clsi] skip download of empty file blob * [clsi] break down e2e compile time metric by compileFromHistory GitOrigin-RevId: 0dadef93e89d8a172c35cb130a1042d9d1bec42a
47 lines
2.1 KiB
Docker
47 lines
2.1 KiB
Docker
# This file was auto-generated, do not edit it directly.
|
|
# Instead run bin/update_build_scripts from
|
|
# https://github.com/overleaf/internal/
|
|
|
|
FROM node:24.13.0 AS base
|
|
|
|
WORKDIR /overleaf/services/clsi
|
|
COPY services/clsi/install_deps.sh /overleaf/services/clsi/
|
|
RUN chmod 0755 ./install_deps.sh && ./install_deps.sh
|
|
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
|
|
COPY services/clsi/entrypoint.sh /
|
|
|
|
# Google Cloud Storage needs a writable $HOME/.config for resumable uploads
|
|
# (see https://googleapis.dev/nodejs/storage/latest/File.html#createWriteStream)
|
|
RUN mkdir /home/node/.config && chown node:node /home/node/.config
|
|
|
|
FROM base AS app
|
|
|
|
COPY package.json package-lock.json /overleaf/
|
|
COPY libraries/fetch-utils/package.json /overleaf/libraries/fetch-utils/package.json
|
|
COPY libraries/logger/package.json /overleaf/libraries/logger/package.json
|
|
COPY libraries/metrics/package.json /overleaf/libraries/metrics/package.json
|
|
COPY libraries/o-error/package.json /overleaf/libraries/o-error/package.json
|
|
COPY libraries/overleaf-editor-core/package.json /overleaf/libraries/overleaf-editor-core/package.json
|
|
COPY libraries/promise-utils/package.json /overleaf/libraries/promise-utils/package.json
|
|
COPY libraries/settings/package.json /overleaf/libraries/settings/package.json
|
|
COPY libraries/stream-utils/package.json /overleaf/libraries/stream-utils/package.json
|
|
COPY services/clsi/package.json /overleaf/services/clsi/package.json
|
|
COPY patches/ /overleaf/patches/
|
|
|
|
RUN cd /overleaf && npm ci --quiet
|
|
COPY libraries/fetch-utils/ /overleaf/libraries/fetch-utils/
|
|
COPY libraries/logger/ /overleaf/libraries/logger/
|
|
COPY libraries/metrics/ /overleaf/libraries/metrics/
|
|
COPY libraries/o-error/ /overleaf/libraries/o-error/
|
|
COPY libraries/overleaf-editor-core/ /overleaf/libraries/overleaf-editor-core/
|
|
COPY libraries/promise-utils/ /overleaf/libraries/promise-utils/
|
|
COPY libraries/settings/ /overleaf/libraries/settings/
|
|
COPY libraries/stream-utils/ /overleaf/libraries/stream-utils/
|
|
COPY services/clsi/ /overleaf/services/clsi/
|
|
|
|
FROM app
|
|
RUN mkdir -p cache compiles output \
|
|
&& chown node:node cache compiles output
|
|
|
|
CMD ["node", "--expose-gc", "app.js"]
|