Spaces:
Sleeping
Sleeping
ftshijt
commited on
Commit
·
a1f943e
1
Parent(s):
5e2d962
update docker for fix cache issue
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -42,5 +42,10 @@ ENV GRADIO_SERVER_NAME="0.0.0.0"
|
|
42 |
# Set environment variables
|
43 |
ENV PYTHONUNBUFFERED=1
|
44 |
|
|
|
|
|
|
|
|
|
|
|
45 |
# Run the application
|
46 |
CMD ["python", "app.py"]
|
|
|
42 |
# Set environment variables
|
43 |
ENV PYTHONUNBUFFERED=1
|
44 |
|
45 |
+
# Set for Numba cache (error from https://github.com/librosa/librosa/issues/1156)
|
46 |
+
RUN mkdir -m 777 /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR
|
47 |
+
ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/
|
48 |
+
ENV MPLCONFIGDIR=/tmp/MPLCONFIGDIR/
|
49 |
+
|
50 |
# Run the application
|
51 |
CMD ["python", "app.py"]
|