Files
loneliness-bot/Dockerfile
2026-07-15 14:11:59 +07:00

21 lines
327 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
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"]