25 lines
690 B
Docker
25 lines
690 B
Docker
# Parakeet Sidecar (self-hosted)
|
|
# Provides /health and /transcribe endpoints consumed by StemEngine backend.
|
|
|
|
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ffmpeg \
|
|
build-essential \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
COPY app.py /app/app.py
|
|
|
|
EXPOSE 8777
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8777/health')"
|
|
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8777", "--workers", "1"]
|