diff --git a/photo-ai/Dockerfile b/photo-ai/Dockerfile index 9863210..490c4f3 100644 --- a/photo-ai/Dockerfile +++ b/photo-ai/Dockerfile @@ -7,6 +7,7 @@ ARG TORCH_INDEX=https://download.pytorch.org/whl/${TORCH_VARIANT} WORKDIR /app ENV PIP_NO_CACHE_DIR=1 \ + PIP_BUILD_ISOLATION=0 \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ HF_HOME=/root/.cache/huggingface \ @@ -24,7 +25,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \ pip install torch torchvision --index-url ${TORCH_INDEX} RUN --mount=type=cache,target=/root/.cache/pip \ - pip install --no-deps basicsr==1.4.2 realesrgan==0.3.0 gfpgan==1.3.8 facexlib==0.3.0 && \ + pip install --upgrade setuptools wheel && \ + pip install --no-build-isolation --no-deps basicsr==1.4.2 realesrgan==0.3.0 gfpgan==1.3.8 facexlib==0.3.0 && \ pip install "numpy==2.2.6" "opencv-python-headless==5.0.0.93" addict future lmdb Pillow pyyaml \ requests scikit-image scipy tqdm filterpy numba fastapi "uvicorn[standard]" python-multipart