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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
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 (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
 
 
76
  RUN conda create -y -n webui python=3.11 && \
77
  echo "conda activate webui" >> ~/.bashrc
78
 
79
+ # Fix /opt permissions first
80
+ RUN mkdir -p /opt && chmod 777 /opt
81
+
82
  # Proper noVNC setup (fixed)
83
  RUN mkdir -p /opt/novnc && \
84
+ cp -r /usr/share/novnc/. /opt/novnc/ && \
85
+ chmod -R 755 /opt/novnc && \
86
+ chmod +x /opt/novnc/utils/*
87
 
88
  # Fix permissions for X11 and logs (fixed)
89
  RUN mkdir -p /var/log/x11vnc && \
90
  touch /var/log/x11vnc.log && \
91
+ chown user:user /var/log/x11vnc /var/log/x11vnc.log && \
 
92
  chmod 755 /var/log/x11vnc && \
93
  chmod 644 /var/log/x11vnc.log
94