Files
microdao-daarion/services/stt-service/Dockerfile
Apple 3de3c8cb36 feat: Add presence heartbeat for Matrix online status
- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
2025-11-27 00:19:40 -08:00

26 lines
674 B
Docker

FROM python:3.11-slim
# Встановити системні залежності
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Копіювати requirements
COPY requirements.txt .
# Встановити Python залежності
RUN pip install --no-cache-dir -r requirements.txt
# Копіювати код
COPY app/ ./app/
# Whisper модель завантажиться автоматично при першому запиті
# Це уникає проблем з мережею під час build
EXPOSE 8895
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8895"]