Spaces:
Running
Running
Add apt.txt for system dependencies (portaudio, ffmpeg, etc.) and remove Dockerfile
Browse files- Dockerfile +0 -24
- apt.txt +4 -0
Dockerfile
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
# Dockerfile
|
2 |
-
FROM python:3.10-slim
|
3 |
-
|
4 |
-
# install system deps for audio + ffmpeg
|
5 |
-
RUN apt-get update && \
|
6 |
-
apt-get install -y --no-install-recommends \
|
7 |
-
portaudio19-dev \
|
8 |
-
ffmpeg \
|
9 |
-
libsm6 \
|
10 |
-
libxext6 \
|
11 |
-
&& rm -rf /var/lib/apt/lists/*
|
12 |
-
|
13 |
-
# set working dir
|
14 |
-
WORKDIR /home/user/app
|
15 |
-
|
16 |
-
# copy everything in
|
17 |
-
COPY . .
|
18 |
-
|
19 |
-
# upgrade pip & install Python deps
|
20 |
-
RUN pip install --upgrade pip && \
|
21 |
-
pip install --no-cache-dir -r requirements.txt
|
22 |
-
|
23 |
-
# finally launch
|
24 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apt.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
portaudio19-dev
|
2 |
+
ffmpeg
|
3 |
+
libsm6
|
4 |
+
libxext6
|