Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -25,7 +25,7 @@ COPY requirements.txt .
|
|
| 25 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 26 |
pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
-
# Pre-download
|
| 29 |
RUN python -c "from rembg import new_session; new_session('u2netp')" || true
|
| 30 |
|
| 31 |
# Copy application code
|
|
|
|
| 25 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 26 |
pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
+
# Pre-download the lightweight model during build (speeds up first request)
|
| 29 |
RUN python -c "from rembg import new_session; new_session('u2netp')" || true
|
| 30 |
|
| 31 |
# Copy application code
|