Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -4,6 +4,10 @@ FROM python:3.12-slim
|
|
| 4 |
# Set the transformers cache to a writable directory
|
| 5 |
ENV TRANSFORMERS_CACHE=/app/.cache
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Set the working directory in the container
|
| 9 |
WORKDIR /app
|
|
|
|
| 4 |
# Set the transformers cache to a writable directory
|
| 5 |
ENV TRANSFORMERS_CACHE=/app/.cache
|
| 6 |
|
| 7 |
+
# Create the cache directory and set proper permissions
|
| 8 |
+
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
| 9 |
+
|
| 10 |
+
|
| 11 |
|
| 12 |
# Set the working directory in the container
|
| 13 |
WORKDIR /app
|