Spaces:
Running
Running
chore: add Dockerfile to install PortAudio, FFmpeg, and image libs for Space builds
Browse filesIntroduce Dockerfile at repo root
Install portaudio19-dev for PyAudio support
Install ffmpeg, libsm6, and libxext6 for audio/video processing
Use Python 3.10-slim base and install requirements via pip
- Dockerfile +24 -0
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|