From e2f1b490d7423e9b1372d2f33f8e321126e60edd Mon Sep 17 00:00:00 2001 From: Hamada Salhab Date: Fri, 18 Oct 2024 00:52:54 +0300 Subject: [PATCH] fix(agents-api): Install gcc/g++ and other dependencies (#692) > [!IMPORTANT] > Add system dependencies in `Dockerfile` and `Dockerfile.worker` to support building Python packages with native extensions. > > - **Dependencies**: > - Install `gcc`, `g++`, and development libraries in `Dockerfile` and `Dockerfile.worker` to support building Python packages with native extensions. > - Libraries include `libssl-dev`, `libffi-dev`, `libbz2-dev`, among others. > - **Dockerfiles**: > - Update `Dockerfile` and `Dockerfile.worker` to include new dependencies. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral) for 4007541a4bcd4b1029d7db96a3a98fc1e6ffad0c. It will automatically update as commits are pushed. --------- Co-authored-by: vedantsahai18 --- agents-api/Dockerfile | 24 ++++++++++++++++++++++++ agents-api/Dockerfile.worker | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/agents-api/Dockerfile b/agents-api/Dockerfile index 90432df12..bd4e29188 100644 --- a/agents-api/Dockerfile +++ b/agents-api/Dockerfile @@ -13,6 +13,30 @@ RUN pip install 'poetry>=1.8.0,<1.9.0' \ COPY pyproject.toml poetry.lock ./ +RUN apt-get update && apt-get install -y --no-install-recommends \ + dpkg-dev \ + gcc \ + g++ \ + libbluetooth-dev \ + libbz2-dev \ + libc6-dev \ + libexpat1-dev \ + libffi-dev \ + libgdbm-dev \ + liblzma-dev \ + libncursesw5-dev \ + libreadline-dev \ + libsqlite3-dev \ + libssl-dev \ + make \ + tk-dev \ + uuid-dev \ + wget \ + xz-utils \ + zlib1g-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + RUN poetry install --no-dev --no-root COPY . ./ diff --git a/agents-api/Dockerfile.worker b/agents-api/Dockerfile.worker index 0bf84fae2..81fa7d2cd 100644 --- a/agents-api/Dockerfile.worker +++ b/agents-api/Dockerfile.worker @@ -13,6 +13,30 @@ RUN pip install 'poetry>=1.8.0,<1.9.0' \ COPY pyproject.toml poetry.lock ./ +RUN apt-get update && apt-get install -y --no-install-recommends \ + dpkg-dev \ + gcc \ + g++ \ + libbluetooth-dev \ + libbz2-dev \ + libc6-dev \ + libexpat1-dev \ + libffi-dev \ + libgdbm-dev \ + liblzma-dev \ + libncursesw5-dev \ + libreadline-dev \ + libsqlite3-dev \ + libssl-dev \ + make \ + tk-dev \ + uuid-dev \ + wget \ + xz-utils \ + zlib1g-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + RUN poetry install --no-dev --no-root COPY . ./