build: update pip and setuptools in dockerfile

Otherwise a form of this issue occurs due to older setuptools not supporting
pyproject.toml:
https://github.com/pypa/setuptools/issues/3269

Might be resolved on Ubuntu 24.04 images.
This commit is contained in:
Enno Hermann 2024-05-07 23:03:18 +02:00
parent 0504ae3a02
commit 129b488614
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ FROM ${BASE}
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y --no-install-recommends gcc g++ make python3 python3-dev python3-pip python3-venv python3-wheel espeak-ng libsndfile1-dev && rm -rf /var/lib/apt/lists/*
RUN pip3 install -U pip setuptools
RUN pip3 install llvmlite --ignore-installed
# Install Dependencies:

View File

@ -11,6 +11,7 @@ RUN apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Install Major Python Dependencies:
RUN pip3 install -U pip setuptools
RUN pip3 install llvmlite --ignore-installed
RUN pip3 install torch torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
RUN rm -rf /root/.cache/pip