| FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04 |
|
|
| ENV DEBIAN_FRONTEND=noninteractive \ |
| TZ=Asia/Kolkata \ |
| PYTHONUNBUFFERED=1 |
|
|
| |
| RUN rm -f /etc/apt/sources.list.d/*.list && \ |
| apt-get update && apt-get install -y --no-install-recommends \ |
| curl \ |
| ca-certificates \ |
| sudo \ |
| git \ |
| wget \ |
| procps \ |
| git-lfs \ |
| zip \ |
| unzip \ |
| htop \ |
| vim \ |
| nano \ |
| bzip2 \ |
| libx11-6 \ |
| build-essential \ |
| libsndfile-dev \ |
| python3-pip\ |
| python3-venv\ |
| software-properties-common \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN git clone https://github.com/browser-use/web-ui.git |
|
|
| RUN ls -la |
|
|
| |
| WORKDIR /web-ui |
|
|
| RUN ls -la /web-ui |
|
|
| |
| RUN pip install uv |
|
|
| |
| RUN uv venv --python 3.11 |
|
|
| |
| |
| RUN ls -la |
|
|
| |
| RUN ls -la .venv/bin/ |
|
|
| |
| RUN .venv/bin/python -m ensurepip --upgrade |
|
|
| |
| RUN ls -la .venv/bin/ |
|
|
| RUN .venv/bin/pip3 install uv playwright |
|
|
| |
| RUN ls -la .venv/bin/ |
|
|
| |
| RUN .venv/bin/pip3 install -r /web-ui/requirements.txt \ |
| && .venv/bin/playwright install --with-deps chromium |
|
|
| RUN chmod -R 777 /web-ui/* |
| |
| EXPOSE 7860 |
|
|
| |
| |
| CMD [".venv/bin/python", "webui.py", "--ip", "0.0.0.0", "--port", "7860"] |