Spaces:
Build error
Build error
GPTfree api
commited on
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
|
|
5 |
git \
|
6 |
gcc g++ \
|
7 |
ffmpeg \
|
|
|
8 |
&& apt-get clean \
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
@@ -19,10 +20,15 @@ RUN pip install --upgrade pip==23.1 \
|
|
19 |
&& pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
|
20 |
&& pip install -r requirements.txt
|
21 |
|
22 |
-
# Adjust permissions for
|
23 |
-
RUN chmod -R 777
|
24 |
|
25 |
-
#
|
|
|
|
|
|
|
|
|
|
|
26 |
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
27 |
ENV NUMBA_DISABLE_JIT=1
|
28 |
|
|
|
5 |
git \
|
6 |
gcc g++ \
|
7 |
ffmpeg \
|
8 |
+
fontconfig \
|
9 |
&& apt-get clean \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
|
|
20 |
&& pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
|
21 |
&& pip install -r requirements.txt
|
22 |
|
23 |
+
# Adjust permissions for /app and its subdirectories
|
24 |
+
RUN chmod -R 777 /app
|
25 |
|
26 |
+
# Ensure Matplotlib and Fontconfig have writable cache directories
|
27 |
+
RUN mkdir -p /tmp/matplotlib /tmp/fontconfig /app/TEMP && chmod -R 777 /tmp /app/TEMP
|
28 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
29 |
+
ENV FONTCONFIG_PATH=/tmp/fontconfig
|
30 |
+
|
31 |
+
# Environment variables for numba
|
32 |
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
33 |
ENV NUMBA_DISABLE_JIT=1
|
34 |
|