Files
bdi_podman_serverconf/containers/talkbot/talkbot.Containerfile
T

28 wiersze
754 B
Docker

### Nextcloud Talk voice-translate bot
### Receives voice messages via the Talk bot webhook, transcribes them
### with whisper.cpp, translates with llama.cpp, and synthesizes the
### translation with qwen-tts, replying into the same conversation.
###
### BUILD: podman build -t talkbot:latest -f talkbot.Containerfile .
FROM python:3.12-slim
USER root
EXPOSE 8100
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl ffmpeg \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn httpx
COPY server.py /app/server.py
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
CMD []