24 lines
549 B
Plaintext
24 lines
549 B
Plaintext
# Simple, small image
|
|
FROM python:3.11-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
# System deps (add git if you need it)
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates tzdata && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Install deps first (better cache)
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
|
|
# Copy the app
|
|
COPY . .
|
|
|
|
# The bot reads settings.conf from /app/settings.conf
|
|
# The data file should live in /app/data (mounted as a volume)
|
|
CMD ["python", "-u", "bot.py"]
|