Skip to content

Commit 2887a3a

Browse files
committed
fix: replace install-onlyoffice.sh with no-op after build
The entrypoint always re-runs install-onlyoffice.sh at startup, causing historyKeeper timeout crash loops. Pre-bake the assets during build and replace the script with a no-op so the entrypoint call is harmless.
1 parent 7aa490f commit 2887a3a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ RUN git clone https://github.com/cryptpad/sso/
1010
# Revert working directory to the root of the cryptpad project
1111
WORKDIR /cryptpad
1212

13-
# Pre-install OnlyOffice assets during build to avoid timeout on startup
14-
RUN ./install-onlyoffice.sh
13+
# Pre-install OnlyOffice assets during build and replace script with no-op
14+
# to prevent the entrypoint from re-running the lengthy install at startup
15+
RUN ./install-onlyoffice.sh --accept-license --trust-repository \
16+
&& echo '#!/bin/bash' > ./install-onlyoffice.sh

0 commit comments

Comments
 (0)