Spaces:
Running
Running
tuts4y0u
commited on
Commit
•
bb5f7df
1
Parent(s):
d5d4ae1
Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -9,11 +9,11 @@ RUN chown root:shadow /etc/shadow
|
|
9 |
RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart
|
10 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
11 |
RUN mkdir -p /home/user/.vnc
|
|
|
12 |
ARG VNC_RESOLUTION
|
13 |
RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
|
14 |
echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd && \
|
15 |
cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
|
16 |
-
RUN chmod -R 777 /home/user/.vnc /tmp
|
17 |
ENV HOME=/home/user \
|
18 |
PATH=/home/user/.local/bin:$PATH
|
19 |
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
|
|
|
9 |
RUN sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart
|
10 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
11 |
RUN mkdir -p /home/user/.vnc
|
12 |
+
RUN chmod -R 777 /home/user/.vnc /tmp
|
13 |
ARG VNC_RESOLUTION
|
14 |
RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=true \
|
15 |
echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd && \
|
16 |
cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
|
|
|
17 |
ENV HOME=/home/user \
|
18 |
PATH=/home/user/.local/bin:$PATH
|
19 |
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
|