Skip to content
Snippets Groups Projects

cryptpad now requires onlyoffice to be installed separately

Merged Michael Thaler requested to merge main into stable
+ 11
0
@@ -27,12 +27,23 @@ RUN npm install --omit=dev \
# Create actual cryptpad image
FROM node:lts-slim
RUN apt-get update && apt-get -y upgrade #upgrade as upstream containers might be outdated
# Create user and group for cryptpad so it does not run as root
RUN groupadd cryptpad -g 4001
RUN useradd cryptpad -u 4001 -g 4001 -d /cryptpad
# Copy cryptpad with installed modules
COPY --from=build --chown=cryptpad /cryptpad /cryptpad
##### cryptpad onlyoffice block
# curl is a requirement for next operation
RUN apt-get install -y curl less git
#onlyoffice is a separate installation as of https://github.com/cryptpad/cryptpad/releases/tag/2024.3.0
RUN /cryptpad/install-onlyoffice.sh -a
#### end cryptpad onlyoffice block
# act as user cryptpad from now on
USER cryptpad
# Set workdir to cryptpad
Loading