Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -9
Dockerfile
CHANGED
@@ -1,20 +1,17 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
6 |
|
7 |
WORKDIR /app
|
8 |
COPY . /app
|
9 |
|
10 |
RUN pip install --upgrade pip
|
11 |
-
RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
|
12 |
|
13 |
-
#
|
14 |
-
|
15 |
-
ENV NUMBA_DISABLE_CACHE=1
|
16 |
|
17 |
EXPOSE 7860
|
18 |
-
|
19 |
CMD ["python", "app.py"]
|
20 |
-
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# Fix numba cache crash
|
4 |
+
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|
5 |
+
|
6 |
+
RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 && apt-get clean
|
7 |
|
8 |
WORKDIR /app
|
9 |
COPY . /app
|
10 |
|
11 |
RUN pip install --upgrade pip
|
|
|
12 |
|
13 |
+
# Install all packages from PyTorch + working combo
|
14 |
+
RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
|
|
|
15 |
|
16 |
EXPOSE 7860
|
|
|
17 |
CMD ["python", "app.py"]
|
|