binary1ne commited on
Commit
cf40818
·
verified ·
1 Parent(s): a977f39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -7
Dockerfile CHANGED
@@ -76,16 +76,19 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
76
  RUN conda create -y -n webui python=3.11 && \
77
  echo "conda activate webui" >> ~/.bashrc
78
 
79
- # Proper noVNC setup
80
  RUN mkdir -p /opt/novnc && \
81
- ln -s /usr/share/novnc/* /opt/novnc/ && \
82
- ln -s /usr/share/novnc/utils /opt/novnc/utils
83
-
84
- # Fix permissions for X11 and logs
85
  RUN mkdir -p /var/log/x11vnc && \
86
  touch /var/log/x11vnc.log && \
87
- chown -R user:user /var/log/x11vnc* && \
88
- chmod -R 755 /var/log/x11vnc*
 
 
 
89
 
90
  # Set up supervisor and permissions
91
  RUN mkdir -p /etc/supervisor/conf.d && \
 
76
  RUN conda create -y -n webui python=3.11 && \
77
  echo "conda activate webui" >> ~/.bashrc
78
 
79
+ # Proper noVNC setup (fixed)
80
  RUN mkdir -p /opt/novnc && \
81
+ find /usr/share/novnc/ -maxdepth 1 -mindepth 1 -exec ln -s {} /opt/novnc/ \; && \
82
+ ln -sf /usr/share/novnc/utils /opt/novnc/utils
83
+
84
+ # Fix permissions for X11 and logs (fixed)
85
  RUN mkdir -p /var/log/x11vnc && \
86
  touch /var/log/x11vnc.log && \
87
+ chown user:user /var/log/x11vnc && \
88
+ chown user:user /var/log/x11vnc.log && \
89
+ chmod 755 /var/log/x11vnc && \
90
+ chmod 644 /var/log/x11vnc.log
91
+
92
 
93
  # Set up supervisor and permissions
94
  RUN mkdir -p /etc/supervisor/conf.d && \