Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -3,7 +3,9 @@ FROM python:3.10.9
|
|
3 |
COPY . .
|
4 |
|
5 |
WORKDIR /
|
6 |
-
|
|
|
|
|
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"]
|