Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -13,7 +13,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
13 |
# Set environment variables for Matplotlib, cache, and rembg models
|
14 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
15 |
ENV XDG_CACHE_HOME=/tmp
|
16 |
-
ENV U2NET_HOME=/tmp/u2net
|
|
|
17 |
|
18 |
# Ensure necessary directories exist and have the right permissions
|
19 |
RUN mkdir -p /tmp/matplotlib /tmp/numba_cache /tmp/u2net && \
|
|
|
13 |
# Set environment variables for Matplotlib, cache, and rembg models
|
14 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
15 |
ENV XDG_CACHE_HOME=/tmp
|
16 |
+
ENV U2NET_HOME=/tmp/u2net
|
17 |
+
# Ensure rembg can download models to a writable directory
|
18 |
|
19 |
# Ensure necessary directories exist and have the right permissions
|
20 |
RUN mkdir -p /tmp/matplotlib /tmp/numba_cache /tmp/u2net && \
|