freddyaboulton HF staff commited on
Commit
6c92864
1 Parent(s): 92f7211

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -9,6 +9,10 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
 
10
  COPY . .
11
 
 
 
 
 
12
  ENV GRADIO_SERVER_NAME="0.0.0.0"
13
  ENV GRADIO_SERVER_PORT=7860
14
  ENV GRADIO_ALLOW_FLAGGING="never"
 
9
 
10
  COPY . .
11
 
12
+ RUN mkdir -p /tmp/cache/
13
+ RUN chmod a+rwx -R /tmp/cache/
14
+
15
+ ENV TRANSFORMERS_CACHE=/tmp/cache/
16
  ENV GRADIO_SERVER_NAME="0.0.0.0"
17
  ENV GRADIO_SERVER_PORT=7860
18
  ENV GRADIO_ALLOW_FLAGGING="never"