File size: 658 Bytes
d8a8a81
 
1006c1a
 
 
03da1c4
14eafd8
1006c1a
d8a8a81
1006c1a
03da1c4
 
1006c1a
 
 
03da1c4
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]