From a6720360752a83d1c56392c64d4aba4e664138f3 Mon Sep 17 00:00:00 2001 From: tobitege <10787084+tobitege@users.noreply.github.com> Date: Tue, 10 Sep 2024 04:15:13 +0200 Subject: [PATCH] download playwright --- containers/app/Dockerfile | 26 ++++++++++++++++++++++++++ containers/sandbox/Dockerfile | 4 +++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/containers/app/Dockerfile b/containers/app/Dockerfile index c8f614d133..6765422725 100644 --- a/containers/app/Dockerfile +++ b/containers/app/Dockerfile @@ -30,6 +30,32 @@ RUN export POETRY_CACHE_DIR && poetry install --without evaluation,llama-index - FROM nikolaik/python-nodejs:python3.11-nodejs22 AS runtime +# install basic packages +RUN apt-get update && apt-get install -y \ + curl \ + wget \ + git \ + vim \ + nano \ + unzip \ + zip \ + python3 \ + python3-pip \ + python3-venv \ + python3-dev \ + build-essential \ + openssh-server \ + sudo \ + gcc \ + jq \ + g++ \ + make \ + iproute2 \ + && rm -rf /var/lib/apt/lists/* + +# Install Playwright via pip +RUN python3 -m pip install playwright + WORKDIR /app ARG OPENHANDS_BUILD_VERSION #re-declare for this section diff --git a/containers/sandbox/Dockerfile b/containers/sandbox/Dockerfile index 27ffcdb3c2..84a1218df0 100644 --- a/containers/sandbox/Dockerfile +++ b/containers/sandbox/Dockerfile @@ -38,4 +38,6 @@ RUN rm -f Miniforge3.sh RUN /openhands/miniforge3/bin/pip install --upgrade pip RUN /openhands/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8 RUN /openhands/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai -RUN /openhands/miniforge3/bin/pip install python-dotenv toml termcolor pydantic python-docx pyyaml docker pexpect tenacity e2b browsergym minio +RUN /openhands/miniforge3/bin/pip install python-dotenv toml \ + termcolor pydantic python-docx pyyaml \ + docker pexpect tenacity e2b browsergym minio