diff --git a/Dockerfile b/Dockerfile index 1e43e14..0b26f77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,6 @@ RUN apt-get update -y && \ # 安装vnc和自动化相关工具 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 \ && 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 WORKDIR /home/app +# 设置 VNC 密码 +RUN mkdir ~/.vnc && x11vnc -storepasswd vncpass ~/.vnc/passwd + # 安装wine-mono和中文字体 COPY install-wine-mono.sh ./ COPY install-wine-chinese.sh ./