Compare commits

...

4 Commits

Author SHA1 Message Date
tobitege
56c44641bc Merge branch 'main' into tobitege/update-dockerfile 2024-09-10 17:37:40 +02:00
tobitege
a672036075 download playwright 2024-09-10 04:15:13 +02:00
tobitege
516c75d784 also update sandbox/Dockerfile 2024-09-10 03:40:16 +02:00
tobitege
fad081fab6 Dockerfile updated to use nikolaik image for runtime build 2024-09-10 03:27:12 +02:00
2 changed files with 34 additions and 9 deletions

View File

@@ -28,7 +28,33 @@ COPY ./pyproject.toml ./poetry.lock ./
RUN touch README.md
RUN export POETRY_CACHE_DIR && poetry install --without evaluation,llama-index --no-root && rm -rf $POETRY_CACHE_DIR
FROM python:3.12.3-slim AS runtime
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

View File

@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM nikolaik/python-nodejs:python3.11-nodejs22
# install basic packages
RUN apt-get update && apt-get install -y \
@@ -21,12 +21,9 @@ RUN apt-get update && apt-get install -y \
g++ \
make \
iproute2 \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p -m0755 /var/run/sshd
# symlink python3 to python
RUN ln -s /usr/bin/python3 /usr/bin/python
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p -m0755 /var/run/sshd \
&& ln -s /usr/bin/python3 /usr/bin/python # symlink python3 to python
# ==== OpenHands Runtime Client ====
RUN mkdir -p /openhands && mkdir -p /openhands/logs && chmod 777 /openhands/logs
@@ -41,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