stt-whisper-cpp-ap/Dockerfile

20 lines
378 B
Docker

FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
ffmpeg \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app and model
COPY app ./app
EXPOSE 4002
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "4002"]