Files
Father Bot 9bd3f60d59 Upgrade Docker base image to Python 3.12
python:3.8-slim is EOL (security support ended Oct 2024). Move to
python:3.12-slim and drop the pinned setuptools==59.5.0, which
predates 3.12 support; use the current setuptools instead.
2026-01-24 11:20:14 +03:00

27 lines
664 B
Docker

FROM python:3.12-slim
# flush stdout/stderr immediately so logs show up in `docker logs`
ENV PYTHONUNBUFFERED=1
RUN \
set -eux; \
apt-get update; \
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
python3-pip \
build-essential \
python3-venv \
ffmpeg \
git \
; \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir -U pip && pip3 install --no-cache-dir -U wheel && pip3 install --no-cache-dir -U setuptools
COPY ./requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt && rm -r /tmp/requirements.txt
COPY . /code
WORKDIR /code
CMD ["bash"]