peace4ever commited on
Commit
6b0f61e
·
verified ·
1 Parent(s): a978583

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -6,9 +6,10 @@ FROM python:3.9
6
  WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
-
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
  RUN pip install flask
 
12
 
13
  COPY app.py .
14
  EXPOSE 5000
 
6
  WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
+ ENV TRANSFORMERS_CACHE=/code/.cache
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
  RUN pip install flask
12
+ RUN chmod -R 755 /code/.cache
13
 
14
  COPY app.py .
15
  EXPOSE 5000