anon5 commited on
Commit
40bf747
1 Parent(s): 43a01a7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -7,11 +7,10 @@ COPY ./app.py /app
7
  COPY ./requirements.txt /app
8
  RUN pip install -r requirements.txt
9
 
10
- #RUN chmod -R 777 /.cache
11
 
12
  RUN mkdir /app/.cache
13
- #ARG SENTENCE_TRANSFORMERS_HOME=/app/.cache
14
- ENV TRANSFORMERS_CACHE=/app/.cache
15
 
16
  EXPOSE 7860
17
  CMD ["flask", "run" ,"--host", "0.0.0.0", "--port", "7860"]
 
7
  COPY ./requirements.txt /app
8
  RUN pip install -r requirements.txt
9
 
 
10
 
11
  RUN mkdir /app/.cache
12
+ RUN chmod -R 777 /app/.cache
13
+ ENV HF_HOME=/app/.cache
14
 
15
  EXPOSE 7860
16
  CMD ["flask", "run" ,"--host", "0.0.0.0", "--port", "7860"]