Skip to content

Commit

Permalink
fix(agents-api): Install gcc/g++ and other dependencies (#692)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->


> [!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.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup>
for 4007541. It will automatically
update as commits are pushed.</sup>


<!-- ELLIPSIS_HIDDEN -->

---------

Co-authored-by: vedantsahai18 <[email protected]>
  • Loading branch information
HamadaSalhab and Vedantsahai18 authored Oct 17, 2024
1 parent c77a1a4 commit e2f1b49
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions agents-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . ./
Expand Down
24 changes: 24 additions & 0 deletions agents-api/Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -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 . ./
Expand Down

0 comments on commit e2f1b49

Please sign in to comment.