Hi All! Getting some weird errors when trying to b...
# ask-community
a
Hi All! Getting some weird errors when trying to build prefect image in our CI system: That's my Dockerfile:
Copy code
FROM prefecthq/prefect:2.11.5-python3.8

WORKDIR /app

COPY ./requirements.txt /app/requirements.txt
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

ENV PYTHONPATH /app/

COPY ./ /app/
When running
docker build .
I'm getting this error when trying to upgrade
pip
(or to install any python package):
Copy code
RuntimeError: can't start new thread
Did anyone encounter something similar and can help? thanks!! P.S it happened after upgrading to prefect image 2.11.5, before we worked with 2.7.7 and it was running smoothly.
👀 1
o
@Sahil Rangwala it’s a production blocker
d
@Alon Peslin I just ran into the same problem. Managed to work around it by disabling the progress bars on the pip install like so
pip install --progress-bar off -r requirements.txt
Got the idea to disable the progress bar after reading https://github.com/pypa/pip/issues/11665