build(onlyoffice): 移除未授权字体注入入口
This commit is contained in:
+2
-19
@@ -3,8 +3,8 @@ 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.
|
||||
# Use redistributable Noto CJK fonts for Chinese document preview. Do not add
|
||||
# deployment-supplied proprietary Microsoft or Zhongyi fonts to this build.
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends fonts-noto-cjk \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
@@ -16,20 +16,3 @@ RUN locale_root=/var/www/onlyoffice/documentserver/web-apps/apps \
|
||||
&& test -n "$matches" \
|
||||
&& sed -i 's/另存副本为/另存为/g' $matches \
|
||||
&& ! grep -RIl '另存副本为' "$locale_root"/*/main/locale/zh.json
|
||||
|
||||
# Deployment-supplied fonts are kept out of Git, but included in local builds.
|
||||
COPY fonts/ /usr/local/share/fonts/ctms/
|
||||
|
||||
# The upstream image contains an older Times New Roman family. Remove those
|
||||
# duplicates only when the deployment supplies all four replacement faces.
|
||||
RUN if [ -s /usr/local/share/fonts/ctms/times.ttf ] \
|
||||
&& [ -s /usr/local/share/fonts/ctms/timesbd.ttf ] \
|
||||
&& [ -s /usr/local/share/fonts/ctms/timesi.ttf ] \
|
||||
&& [ -s /usr/local/share/fonts/ctms/timesbi.ttf ]; then \
|
||||
rm -f /usr/share/fonts/truetype/msttcorefonts/Times_New_Roman*.ttf \
|
||||
/usr/share/fonts/truetype/msttcorefonts/times.ttf \
|
||||
/usr/share/fonts/truetype/msttcorefonts/timesbd.ttf \
|
||||
/usr/share/fonts/truetype/msttcorefonts/timesi.ttf \
|
||||
/usr/share/fonts/truetype/msttcorefonts/timesbi.ttf; \
|
||||
fi \
|
||||
&& fc-cache -f
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user