From d9fea955fc05d6b28657a3546472f39d99316979 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 27 Jan 2026 04:27:53 +0000 Subject: [PATCH] Fix rembg error handling in Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 49ee1e9..a6a50c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ .