d5279b124f
Storage Persistence Guard / storage-persistence-audit (push) Has been cancelled
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled
Client Quality Gates / Shared client and Web (pull_request) Has been cancelled
Client Quality Gates / macOS Desktop (pull_request) Has been cancelled
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled
19 lines
869 B
Docker
19 lines
869 B
Docker
ARG ONLYOFFICE_IMAGE=onlyoffice/documentserver:9.4.0.1
|
|
FROM ${ONLYOFFICE_IMAGE}
|
|
|
|
USER root
|
|
|
|
# Use redistributable Noto CJK fonts for Chinese document preview. Proprietary
|
|
# Microsoft fonts must be supplied separately by an authorized deployment.
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends fonts-noto-cjk \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# CTMS defines "Save As" as creating a workspace copy. Keep the upstream
|
|
# request-save-as event, but use the product terminology in every Chinese editor.
|
|
RUN locale_root=/var/www/onlyoffice/documentserver/web-apps/apps \
|
|
&& matches="$(grep -RIl '另存副本为' "$locale_root"/*/main/locale/zh.json)" \
|
|
&& test -n "$matches" \
|
|
&& sed -i 's/另存副本为/另存为/g' $matches \
|
|
&& ! grep -RIl '另存副本为' "$locale_root"/*/main/locale/zh.json
|