Tts_tele / Dockerfile
Krixter's picture
Upload Dockerfile
ea838ec verified
Raw History Blame Contribute Delete
495 Bytes
# HF Spaces – Docker SDK
# This runs a plain Python bot (no web server needed for polling mode).
FROM python:3.11-slim
# Install ffmpeg (required for audio processing)
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY bot.py .
# HF Spaces requires a port to be exposed even for non-web apps
EXPOSE 7860
CMD ["python", "bot.py"]