Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,7 @@ ENV HOME=/home/$USER
|
|
| 8 |
ENV DISPLAY=:1
|
| 9 |
ENV VNC_PORT=5901
|
| 10 |
ENV NOVNC_PORT=7860
|
|
|
|
| 11 |
|
| 12 |
# Install dependencies: Chrome, Xvfb, noVNC, Fluxbox, and utilities
|
| 13 |
RUN apt-get update && apt-get install -y \
|
|
@@ -30,6 +31,16 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
|
|
| 30 |
# Create a non-root user
|
| 31 |
RUN useradd -m -s /bin/bash $USER
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Set up noVNC web interface
|
| 34 |
RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
|
| 35 |
|
|
|
|
| 8 |
ENV DISPLAY=:1
|
| 9 |
ENV VNC_PORT=5901
|
| 10 |
ENV NOVNC_PORT=7860
|
| 11 |
+
ENV X11VNC_LOG=/tmp/x11vnc.log
|
| 12 |
|
| 13 |
# Install dependencies: Chrome, Xvfb, noVNC, Fluxbox, and utilities
|
| 14 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 31 |
# Create a non-root user
|
| 32 |
RUN useradd -m -s /bin/bash $USER
|
| 33 |
|
| 34 |
+
# Fix permissions for X11 socket directory
|
| 35 |
+
RUN mkdir -p /tmp/.X11-unix \
|
| 36 |
+
&& chmod 1777 /tmp/.X11-unix \
|
| 37 |
+
&& chown $USER:$USER /tmp/.X11-unix
|
| 38 |
+
|
| 39 |
+
# Create a minimal Fluxbox config to suppress warnings
|
| 40 |
+
RUN mkdir -p $HOME/.fluxbox
|
| 41 |
+
COPY fluxbox_menu $HOME/.fluxbox/menu
|
| 42 |
+
RUN chown -R $USER:$USER $HOME/.fluxbox
|
| 43 |
+
|
| 44 |
# Set up noVNC web interface
|
| 45 |
RUN ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
|
| 46 |
|