Jofthomas HF staff commited on
Commit
7e9fa29
1 Parent(s): 19d0adf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -3,7 +3,9 @@ FROM python:3.10.9
3
  COPY . .
4
 
5
  WORKDIR /
6
- ENV NUMBA_CACHE_DIR=/tmp/
 
 
7
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
8
 
9
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
  COPY . .
4
 
5
  WORKDIR /
6
+ RUN mkdir -m 777 /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR
7
+ ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/
8
+ ENV MPLCONFIGDIR=/tmp/MPLCONFIGDIR/
9
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
10
 
11
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]