|
|
FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04 |
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \ |
|
|
TZ=Asia/Kolkata \ |
|
|
PYTHONUNBUFFERED=1 \ |
|
|
PATH="/opt/venv/bin:$PATH" |
|
|
|
|
|
|
|
|
RUN useradd -ms /bin/bash admin |
|
|
|
|
|
|
|
|
RUN apt-get update && \ |
|
|
apt-get install -y --no-install-recommends \ |
|
|
curl \ |
|
|
ca-certificates \ |
|
|
git \ |
|
|
wget \ |
|
|
procps \ |
|
|
git-lfs \ |
|
|
unzip \ |
|
|
bzip2 \ |
|
|
libx11-6 \ |
|
|
build-essential \ |
|
|
libsndfile-dev \ |
|
|
python3-pip \ |
|
|
python3-venv \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
RUN git clone https://github.com/browser-use/web-ui.git /web-ui |
|
|
WORKDIR /web-ui |
|
|
|
|
|
|
|
|
RUN pip3 install --no-cache-dir uv==0.4.17 |
|
|
|
|
|
|
|
|
RUN uv venv --python 3.11 && \ |
|
|
chmod -R a+rx /web-ui/.venv && chmod -R a+r /web-ui/.venv |
|
|
|
|
|
|
|
|
RUN .venv/bin/pip3 install --no-cache-dir --upgrade pip uv==0.4.17 playwright && \ |
|
|
.venv/bin/pip3 install --no-cache-dir -r requirements.txt && \ |
|
|
.venv/bin/playwright install --with-deps chromium |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
RUN chown -R admin:admin /web-ui && chmod -R 777 /web-ui |
|
|
|
|
|
|
|
|
|
|
|
USER admin |
|
|
|
|
|
|
|
|
CMD [".venv/bin/python3", "webui.py", "--ip", "0.0.0.0", "--port", "7860"] |
|
|
|