Update Dockerfile
Browse files- Dockerfile +14 -7
Dockerfile
CHANGED
|
@@ -34,7 +34,8 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
| 34 |
RUN git clone https://github.com/browser-use/web-ui.git /web-ui
|
| 35 |
WORKDIR /web-ui
|
| 36 |
|
| 37 |
-
COPY webui_with_vnc.py /web-ui/
|
|
|
|
| 38 |
# Create a non-root user and switch to it
|
| 39 |
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
|
| 40 |
&& chown -R user:user /web-ui
|
|
@@ -49,6 +50,7 @@ RUN mkdir $HOME/.cache $HOME/.config \
|
|
| 49 |
# Set up the Conda environment
|
| 50 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
| 51 |
PATH=$HOME/miniconda/bin:$PATH
|
|
|
|
| 52 |
RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
|
| 53 |
&& chmod +x ~/miniconda.sh \
|
| 54 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
|
@@ -77,9 +79,14 @@ RUN chown -R user:user /web-ui && chmod -R 755 /web-ui
|
|
| 77 |
# websockify --web=/usr/share/novnc/ 7860 localhost:5900 & \
|
| 78 |
# /home/user/miniconda/envs/webui/bin/python webui.py --ip 0.0.0.0 --port 7860 \
|
| 79 |
# "
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
RUN git clone https://github.com/browser-use/web-ui.git /web-ui
|
| 35 |
WORKDIR /web-ui
|
| 36 |
|
| 37 |
+
COPY webui_with_vnc.py start.sh /web-ui/
|
| 38 |
+
|
| 39 |
# Create a non-root user and switch to it
|
| 40 |
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
|
| 41 |
&& chown -R user:user /web-ui
|
|
|
|
| 50 |
# Set up the Conda environment
|
| 51 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
| 52 |
PATH=$HOME/miniconda/bin:$PATH
|
| 53 |
+
|
| 54 |
RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
|
| 55 |
&& chmod +x ~/miniconda.sh \
|
| 56 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
|
|
|
| 79 |
# websockify --web=/usr/share/novnc/ 7860 localhost:5900 & \
|
| 80 |
# /home/user/miniconda/envs/webui/bin/python webui.py --ip 0.0.0.0 --port 7860 \
|
| 81 |
# "
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
CMD ["/web-ui/start.sh"]
|
| 86 |
+
|
| 87 |
+
# CMD bash -c "\
|
| 88 |
+
# Xvfb :0 -screen 0 1280x800x24 & \
|
| 89 |
+
# x11vnc -forever -nopw -display :0 -rfbport 5900 & \
|
| 90 |
+
# websockify --web=/usr/share/novnc/ 6080 localhost:5900 & \
|
| 91 |
+
# cp -r /usr/share/novnc /web-ui/static/novnc && \
|
| 92 |
+
# /home/user/miniconda/envs/webui/bin/python /web-ui/webui_with_vnc.py \
|