overleaf-cep/server-ce/hotfix/5.3.1/Dockerfile
Miguel Serrano f157dd419e [CE/SP] Hotfix 5.3.1 (#23008)
* [CE/SP] Hotfix 5.3.1

* Added mongoose upgrade for services/templates

* Fix mongodb transitive dependency

* cleaned npm cache and /tmp

GitOrigin-RevId: 139cf7776ba053c3763613cc3a6cdea4dfd3db44
2025-01-30 09:05:38 +00:00

14 lines
484 B
Docker

FROM sharelatex/sharelatex:5.3.0
# Update copyright year
COPY pr_22950.patch .
RUN patch -p0 < pr_22950.patch && rm pr_22950.patch
# Update Mongoose
RUN npm install mongoose@^8.9.5 --save -w services/web \
&& npm install mongodb@6.12.0 --save \
-w services/chat -w services/contacts -w services/docstore \
-w services/history-v1 -w libraries/mongo-utils \
&& npm install mongodb@6.12.0 --save \
&& rm -rf /root/.cache /root/.npm $(find /tmp/ -mindepth 1 -maxdepth 1)