Spaces:
Runtime error
Runtime error
update
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
@@ -32,12 +32,15 @@ WORKDIR /app
|
|
32 |
COPY --from=builder /app/build ./static
|
33 |
COPY . .
|
34 |
|
35 |
-
RUN mkdir blabla
|
36 |
-
RUN mkdir blabla/cache
|
|
|
37 |
|
38 |
-
RUN chmod u+rwX
|
39 |
|
40 |
-
ENV TRANSFORMERS_CACHE
|
|
|
|
|
41 |
# ENV HF_HOME=blabla/cache/
|
42 |
|
43 |
CMD ["python", "app.py"]
|
|
|
32 |
COPY --from=builder /app/build ./static
|
33 |
COPY . .
|
34 |
|
35 |
+
# RUN mkdir blabla
|
36 |
+
# RUN mkdir blabla/cache
|
37 |
+
RUN mkdir -p /app/cache/
|
38 |
|
39 |
+
RUN chmod u+rwX /app/cache/
|
40 |
|
41 |
+
ENV TRANSFORMERS_CACHE=/app/cache/
|
42 |
+
|
43 |
+
# ENV TRANSFORMERS_CACHE=./cache/
|
44 |
# ENV HF_HOME=blabla/cache/
|
45 |
|
46 |
CMD ["python", "app.py"]
|