fix(photo-ai): build sdists without isolation to avoid duplicate torch download
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user