Spaces:
Sleeping
Sleeping
jjyang77
commited on
Commit
·
03725ff
1
Parent(s):
7cb9920
Handle matplotlib import caching in reliability guard load
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -27,6 +27,10 @@ RUN pip install -I --timeout 2000 -r https://github.com/bigcode-project/bigcodeb
|
|
| 27 |
|
| 28 |
COPY . .
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
WORKDIR /
|
| 31 |
|
| 32 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
|
|
|
| 27 |
|
| 28 |
COPY . .
|
| 29 |
|
| 30 |
+
# For matplotlib import caching in reliability guard
|
| 31 |
+
RUN mkdir -p /cache/matplotlib
|
| 32 |
+
ENV MPLCONFIGDIR=/cache/matplotlib
|
| 33 |
+
|
| 34 |
WORKDIR /
|
| 35 |
|
| 36 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|