Skip to content

Commit

Permalink
[IMPROVEMENT] Update pip when building docker image (#4907)
Browse files Browse the repository at this point in the history
The latests CI builds are taking longer than expected (around 8 minutes)
-
[here](https://github.com/argilla-io/argilla/actions/runs/9288762405/job/25561563438?pr=4906#step:9:2092)
an example - because pip needs to download multiple package version to
match the proper dependency.

This [should be
fixed](https://stackoverflow.com/questions/76758834/pip-is-looking-for-multiple-version-of-library-to-determine-which-version-is-c)
by upgrading pip. This PR includes a pip upgrade when building the
docker image.
  • Loading branch information
frascuchon authored May 29, 2024
1 parent 39b169c commit 23c3d54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions argilla-server/docker/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN python -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN apt-get update && \
apt-get install -y python-dev-is-python3 libpq-dev gcc && \
pip install --upgrade pip && \
pip install uvicorn[standard] && \
for wheel in /packages/*.whl; do pip install "$wheel"[server,postgresql]; done && \
apt-get remove -y python-dev-is-python3 libpq-dev gcc && \
Expand Down

0 comments on commit 23c3d54

Please sign in to comment.