20 lines
506 B
Docker
20 lines
506 B
Docker
FROM python:3.11-slim
|
|
ENV PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies for audio handling and build tools
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ffmpeg \
|
|
libsndfile1 \
|
|
build-essential \
|
|
git \
|
|
wget \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./
|
|
RUN python -m pip install --upgrade pip setuptools wheel && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY server.py ./
|
|
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8001"]
|