tuts4y0u commited on
Commit
7e740d9
1 Parent(s): 6b0a614

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -6,8 +6,7 @@ RUN git clone https://github.com/novnc/noVNC.git noVNC
6
  RUN mkdir -p /home/user/.vnc
7
  ARG VNC_RESOLUTION
8
  RUN --mount=type=secret,id=VNC_PWD,mode=0444,required=true \
9
- VNC_PWD=$(cat /run/secrets/VNC_PWD)
10
- RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
11
  RUN chmod -R 777 /home/user/.vnc /tmp
12
  ENV HOME=/home/user \
13
  PATH=/home/user/.local/bin:$PATH
 
6
  RUN mkdir -p /home/user/.vnc
7
  ARG VNC_RESOLUTION
8
  RUN --mount=type=secret,id=VNC_PWD,mode=0444,required=true \
9
+ cat /run/secrets/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