Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -9,6 +9,12 @@ ENV FLASK_ENV=production
|
|
9 |
# Set the working directory in the container
|
10 |
WORKDIR /app
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Copy the current directory contents into the container at /app
|
13 |
COPY . /app
|
14 |
|
|
|
9 |
# Set the working directory in the container
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
# Set the Transformers cache directory to a writable location
|
13 |
+
ENV TRANSFORMERS_CACHE=/app/transformers_cache
|
14 |
+
|
15 |
+
# Create the cache directory and make it writable
|
16 |
+
RUN mkdir -p $TRANSFORMERS_CACHE && chmod -R 777 $TRANSFORMERS_CACHE
|
17 |
+
|
18 |
# Copy the current directory contents into the container at /app
|
19 |
COPY . /app
|
20 |
|