Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -14,12 +14,14 @@ RUN mkdir -p ~/.vnc && \
|
|
14 |
echo "exec startxfce4" > ~/.vnc/xstartup && \
|
15 |
chmod +x ~/.vnc/xstartup
|
16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
# Expose the VNC and noVNC ports
|
18 |
EXPOSE 8080
|
19 |
|
20 |
-
# Add noVNC startup script
|
21 |
-
RUN mkdir -p /root/novnc && \
|
22 |
-
ln -s /usr/share/novnc/utils/launch.sh /root/novnc/launch.sh
|
23 |
-
|
24 |
# Start noVNC server on container start
|
25 |
-
CMD ["bash", "-c", "/
|
|
|
14 |
echo "exec startxfce4" > ~/.vnc/xstartup && \
|
15 |
chmod +x ~/.vnc/xstartup
|
16 |
|
17 |
+
# Set USER environment variable
|
18 |
+
ENV USER=root
|
19 |
+
|
20 |
+
# Fix permissions for noVNC launch script
|
21 |
+
RUN chmod +x /usr/share/novnc/utils/launch.sh
|
22 |
+
|
23 |
# Expose the VNC and noVNC ports
|
24 |
EXPOSE 8080
|
25 |
|
|
|
|
|
|
|
|
|
26 |
# Start noVNC server on container start
|
27 |
+
CMD ["bash", "-c", "/usr/share/novnc/utils/launch.sh --vnc localhost:5901 --listen 8080 & tightvncserver :1 && tail -f /dev/null"]
|