freddyaboulton HF staff commited on
Commit
aa7b184
1 Parent(s): a59aa93

Update Dockerfile

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