Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -3,14 +3,13 @@ FROM debian:latest
|
|
3 |
|
4 |
# Set non-interactive mode
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
-
RUN ls /home && exit
|
7 |
# Install necessary packages
|
8 |
RUN apt-get update && \
|
9 |
apt-get install -y xfce4 xfce4-goodies tightvncserver novnc websockify && \
|
10 |
apt-get clean
|
11 |
-
RUN chmod +777 /
|
12 |
# Expose ports for noVNC
|
13 |
EXPOSE 6080
|
14 |
|
15 |
# Start the VNC server and noVNC
|
16 |
-
CMD ["sh", "-c", "vncserver :1 -geometry 1280x720 -depth 24 && websockify --web=/usr/share/novnc/ 6080 localhost:5901"]
|
|
|
3 |
|
4 |
# Set non-interactive mode
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
6 |
# Install necessary packages
|
7 |
RUN apt-get update && \
|
8 |
apt-get install -y xfce4 xfce4-goodies tightvncserver novnc websockify && \
|
9 |
apt-get clean
|
10 |
+
RUN chmod +777 /root
|
11 |
# Expose ports for noVNC
|
12 |
EXPOSE 6080
|
13 |
|
14 |
# Start the VNC server and noVNC
|
15 |
+
CMD ["sh", "-c", "USER=root vncserver :1 -geometry 1280x720 -depth 24 && websockify --web=/usr/share/novnc/ 6080 localhost:5901"]
|