Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files9 unmodified lines1011121314151617181920219 unmodified lines# Install dependenciesRUN pip install --no-cache-dir -r requirements.txt# Set environment variables for Matplotlib and cacheENV MPLCONFIGDIR=/tmp/matplotlibENV XDG_CACHE_HOME=/tmp# Ensure the directories exist and set correct permissionsRUN mkdir -p /tmp/matplotlib /tmp/numba_cache && chmod -R 777 /tmp/matplotlib /tmp/numba_cache# Expose port 7860 (Hugging Face default)EXPOSE 78609 unmodified lines10111213141516171819202122239 unmodified lines# Install dependenciesRUN pip install --no-cache-dir -r requirements.txt# Set environment variables for Matplotlib, cache, and rembg modelsENV MPLCONFIGDIR=/tmp/matplotlibENV XDG_CACHE_HOME=/tmpENV U2NET_HOME=/tmp/u2net # Ensure rembg can download models to a writable directory# Ensure necessary directories exist and have the right permissionsRUN mkdir -p /tmp/matplotlib /tmp/numba_cache /tmp/u2net && \chmod -R 777 /tmp/matplotlib /tmp/numba_cache /tmp/u2net# Expose port 7860 (Hugging Face default)EXPOSE 7860
Dockerfile+5-3