优化中文字体安装方案
This commit is contained in:
parent
3d971c9f42
commit
73c54079d1
13
Dockerfile
13
Dockerfile
@ -27,7 +27,7 @@ RUN dpkg --add-architecture i386 && \
|
|||||||
apt-key add winehq.key && \
|
apt-key add winehq.key && \
|
||||||
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main' && \
|
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main' && \
|
||||||
apt-get update -y && \
|
apt-get update -y && \
|
||||||
apt-get install -y --install-recommends winehq-stable && \
|
apt-get install -y --install-recommends winehq-stable winetricks && \
|
||||||
wine --version
|
wine --version
|
||||||
|
|
||||||
# 配置运行环境等信息
|
# 配置运行环境等信息
|
||||||
@ -48,17 +48,16 @@ RUN useradd -m app && usermod -aG sudo app && echo 'app ALL=(ALL) NOPASSWD:ALL'
|
|||||||
USER app
|
USER app
|
||||||
WORKDIR /home/app
|
WORKDIR /home/app
|
||||||
|
|
||||||
# 安装wine-mono
|
# 安装wine-mono和中文字体
|
||||||
COPY install-wine-mono.sh ./
|
COPY install-wine-mono.sh ./
|
||||||
|
COPY install-wine-chinese.sh ./
|
||||||
|
|
||||||
RUN bash -c 'sudo -E supervisord -c /etc/supervisord.conf -l /var/log/supervisord.log &' && \
|
RUN bash -c 'sudo -E supervisord -c /etc/supervisord.conf -l /var/log/supervisord.log &' && \
|
||||||
sleep 5 && \
|
sleep 5 && \
|
||||||
sudo chown -R app:app ./install-wine-mono.sh && \
|
sudo chown -R app:app ./install-*.sh && \
|
||||||
./install-wine-mono.sh && \
|
./install-wine-mono.sh && \
|
||||||
sudo rm -rf ./install-wine-mono.sh
|
./install-wine-chinese.sh && \
|
||||||
|
sudo rm -rf ./install-*.sh
|
||||||
# 处理中文字体
|
|
||||||
RUN sudo apt install -y winetricks && winetricks cjkfonts
|
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
7
install-wine-chinese.sh
Normal file
7
install-wine-chinese.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "开始安装中文字体"
|
||||||
|
|
||||||
|
id
|
||||||
|
|
||||||
|
winetricks cjkfonts
|
Loading…
Reference in New Issue
Block a user