blob: 3ffb557f11c1e3fbcaada19c075c63bfe6e06fc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
FROM python:3.12-slim-bookworm
WORKDIR /app
# Install system dependencies including sox for audio processing
RUN apt-get update && apt-get install -y \
sox \
libsox-dev \
libsndfile1 \
ffmpeg \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy server code
COPY server.py .
# Set environment variables
ENV PORT=8100
ENV TTS_DEVICE=auto
ENV QWEN3_TTS_MODEL=Qwen/Qwen3-TTS-12Hz-0.6B-Base
EXPOSE 8100
HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
CMD curl -f http://localhost:${PORT}/health || exit 1
CMD ["python", "server.py"]
|