脚本优化

This commit is contained in:
李寻欢 2024-02-24 11:24:32 +08:00
parent 5f5bb24706
commit fcb1908e29

View File

@ -11,9 +11,6 @@ RUN apt-get update -y && \
# 安装vnc和自动化相关工具 # 安装vnc和自动化相关工具
RUN apt-get install -y supervisor xvfb x11vnc fluxbox novnc xdotool RUN apt-get install -y supervisor xvfb x11vnc fluxbox novnc xdotool
# 设置 VNC 密码
RUN mkdir ~/.vnc && x11vnc -storepasswd vncpass ~/.vnc/passwd
# 安装中文字体 # 安装中文字体
RUN apt-get install -y ttf-wqy-microhei locales procps \ RUN apt-get install -y ttf-wqy-microhei locales procps \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
@ -48,6 +45,9 @@ RUN useradd -m app && usermod -aG sudo app && echo 'app ALL=(ALL) NOPASSWD:ALL'
USER app USER app
WORKDIR /home/app WORKDIR /home/app
# 设置 VNC 密码
RUN mkdir ~/.vnc && x11vnc -storepasswd vncpass ~/.vnc/passwd
# 安装wine-mono和中文字体 # 安装wine-mono和中文字体
COPY install-wine-mono.sh ./ COPY install-wine-mono.sh ./
COPY install-wine-chinese.sh ./ COPY install-wine-chinese.sh ./