Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -21,6 +21,7 @@ RUN pip install "uvicorn[standard]"
|
|
21 |
# Set the TRANSFORMERS_CACHE environment variable
|
22 |
ENV TEMP_FILES /temp
|
23 |
ENV FILES /temp_files
|
|
|
24 |
|
25 |
# Create the cache directory and adjust permissions
|
26 |
RUN mkdir -p $TEMP_FILES \
|
@@ -29,7 +30,8 @@ RUN mkdir -p $TEMP_FILES \
|
|
29 |
RUN mkdir -p $FILES \
|
30 |
&& chmod -R 777 $FILES
|
31 |
|
32 |
-
RUN
|
|
|
33 |
|
34 |
|
35 |
# Copy the rest of the application code into the container
|
|
|
21 |
# Set the TRANSFORMERS_CACHE environment variable
|
22 |
ENV TEMP_FILES /temp
|
23 |
ENV FILES /temp_files
|
24 |
+
ENV CACHE /.cache
|
25 |
|
26 |
# Create the cache directory and adjust permissions
|
27 |
RUN mkdir -p $TEMP_FILES \
|
|
|
30 |
RUN mkdir -p $FILES \
|
31 |
&& chmod -R 777 $FILES
|
32 |
|
33 |
+
RUN mkdir -p $CACHE \
|
34 |
+
&& chmod -R 777 $CACHE
|
35 |
|
36 |
|
37 |
# Copy the rest of the application code into the container
|