tuts4y0u commited on
Commit
6b3bc46
1 Parent(s): 3d6b8f2

增加分辨率配置

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -5,8 +5,9 @@ RUN apt install xfce4-terminal lxde aqemu sudo curl wget aria2 qemu-system-x86 h
5
  RUN git clone https://github.com/novnc/noVNC.git noVNC
6
  RUN mkdir -p /home/user/.vnc
7
  ARG VNC_PWD
 
8
  RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
9
  RUN chmod -R 777 /home/user/.vnc /tmp
10
  ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH
12
- CMD vncserver -SecurityTypes VncAuth -rfbauth /home/user/.vnc/passwd -geometry 800x600 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860
 
5
  RUN git clone https://github.com/novnc/noVNC.git noVNC
6
  RUN mkdir -p /home/user/.vnc
7
  ARG VNC_PWD
8
+ ARG VNC_RESOLUTION
9
  RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
10
  RUN chmod -R 777 /home/user/.vnc /tmp
11
  ENV HOME=/home/user \
12
  PATH=/home/user/.local/bin:$PATH
13
+ CMD vncserver -SecurityTypes VncAuth -rfbauth /home/user/.vnc/passwd -geometry $VNC_RESOLUTION && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860