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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -35,6 +35,12 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
35
  xvfb \
36
  && rm -rf /var/lib/apt/lists/*
37
 
 
 
 
 
 
 
38
 
39
  # Clone repository
40
  RUN git clone https://github.com/browser-use/web-ui.git
@@ -76,19 +82,13 @@ 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
- # 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
 
 
35
  xvfb \
36
  && rm -rf /var/lib/apt/lists/*
37
 
38
+ # Proper noVNC setup
39
+ RUN mkdir -p /opt/novnc && \
40
+ ln -s /usr/share/novnc/* /opt/novnc/ && \
41
+ ln -s /usr/share/novnc/utils /opt/novnc/utils &&\
42
+ mkdir -p /var/log/x11vnc && \
43
+ touch /var/log/x11vnc.log && \
44
 
45
  # Clone repository
46
  RUN git clone https://github.com/browser-use/web-ui.git
 
82
  RUN conda create -y -n webui python=3.11 && \
83
  echo "conda activate webui" >> ~/.bashrc
84
 
 
 
85
 
86
  # Proper noVNC setup (fixed)
87
+ RUN chmod -R 755 /opt/novnc && \
 
 
88
  chmod +x /opt/novnc/utils/*
89
 
90
  # Fix permissions for X11 and logs (fixed)
91
+ RUN chown user:user /var/log/x11vnc /var/log/x11vnc.log || true && \
 
 
92
  chmod 755 /var/log/x11vnc && \
93
  chmod 644 /var/log/x11vnc.log
94