Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -15,6 +15,10 @@ ENV TRANSFORMERS_CACHE=/app/.cache/transformers
|
|
15 |
# Set the working directory in the container
|
16 |
WORKDIR /app
|
17 |
|
|
|
|
|
|
|
|
|
18 |
# Copy the requirements file into the container at /app
|
19 |
COPY requirements.txt .
|
20 |
|
|
|
15 |
# Set the working directory in the container
|
16 |
WORKDIR /app
|
17 |
|
18 |
+
# Create the cache directory and set permissions *before* copying files
|
19 |
+
# This ensures the directory exists and is writable by the user running the process
|
20 |
+
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
|
21 |
+
|
22 |
# Copy the requirements file into the container at /app
|
23 |
COPY requirements.txt .
|
24 |
|