mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-08-03 13:27:16 +03:00
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.
27 lines
664 B
Docker
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"]
|
|
|