mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
This reverts commit f8396a3caadd536edf64c6f971c77f4c941f000a. GitOrigin-RevId: 8d66aa15a29216736755c3f86954a4d40aa20a6c
49 lines
2.4 KiB
Docker
49 lines
2.4 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:22.18.0 AS base
|
|
|
|
WORKDIR /overleaf/services/project-history
|
|
|
|
# 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/mongo-utils/package.json /overleaf/libraries/mongo-utils/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/redis-wrapper/package.json /overleaf/libraries/redis-wrapper/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/project-history/package.json /overleaf/services/project-history/package.json
|
|
COPY tools/migrations/package.json /overleaf/tools/migrations/package.json
|
|
COPY patches/ /overleaf/patches/
|
|
COPY tools/migrations/ /overleaf/tools/migrations/
|
|
|
|
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/mongo-utils/ /overleaf/libraries/mongo-utils/
|
|
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/redis-wrapper/ /overleaf/libraries/redis-wrapper/
|
|
COPY libraries/settings/ /overleaf/libraries/settings/
|
|
COPY libraries/stream-utils/ /overleaf/libraries/stream-utils/
|
|
COPY services/project-history/ /overleaf/services/project-history/
|
|
COPY tools/migrations/ /overleaf/tools/migrations/
|
|
|
|
FROM app
|
|
USER node
|
|
|
|
CMD ["node", "--expose-gc", "app.js"]
|