Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
# Create a writable cache directory
|
4 |
-
|
|
|
|
|
5 |
|
6 |
# Set environment variable (HF_HOME is preferred over TRANSFORMERS_CACHE)
|
7 |
ENV HF_HOME=/app/cache
|
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
# Create a writable cache directory
|
4 |
+
# Install system dependencies including libGL
|
5 |
+
RUN apt-get update && apt-get install -y libgl1 && \
|
6 |
+
mkdir -p /app/cache && chmod -R 777 /app/cache
|
7 |
|
8 |
# Set environment variable (HF_HOME is preferred over TRANSFORMERS_CACHE)
|
9 |
ENV HF_HOME=/app/cache
|