Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg curl ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Piper | |
| RUN mkdir -p /opt/piper \ | |
| && curl -L https://github.com/rhasspy/piper/releases/latest/download/piper_linux_x86_64.tar.gz \ | |
| | tar -xz -C /opt/piper --strip-components=1 \ | |
| && chmod +x /opt/piper/piper \ | |
| && ln -sf /opt/piper/piper /usr/local/bin/piper | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py drive.py ./ | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |