Files
loneliness-bot/Dockerfile
2026-07-17 17:28:55 +07:00

23 lines
431 B
Docker

FROM python:3.13-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt
FROM python:3.13-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/*
COPY --from=builder /root/.local /root/.local
ENV PATH=/root/.local/bin:$PATH
COPY config/ config/
COPY bot.py .
RUN mkdir -p data
CMD ["python", "bot.py"]