Spaces:
Build error
Build error
# Dockerfile | |
FROM python:3.10-slim | |
# install system deps for audio + ffmpeg | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
portaudio19-dev \ | |
ffmpeg \ | |
libsm6 \ | |
libxext6 \ | |
&& rm -rf /var/lib/apt/lists/* | |
# set working dir | |
WORKDIR /home/user/app | |
# copy everything in | |
COPY . . | |
# upgrade pip & install Python deps | |
RUN pip install --upgrade pip && \ | |
pip install --no-cache-dir -r requirements.txt | |
# finally launch | |
CMD ["python", "app.py"] | |