Fix rembg error handling in Dockerfile

This commit is contained in:
Claude
2026-01-27 04:27:53 +00:00
parent a9a2b7bf04
commit d9fea955fc
+2 -1
View File
@@ -38,7 +38,8 @@ COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Pre-download rembg model (u2net) to avoid first-run delay
RUN python -c "from rembg import remove; print('rembg model downloaded')" || true
# Note: This downloads the U2-Net model (~170MB) during build
RUN python -c "from rembg import remove; print('rembg model downloaded')"
# Copy backend application
COPY backend/ .