Curso-lenguaje-python/catch-all/06_bots_telegram/08_chatgpt_bot/Dockerfile

24 lines
520 B
Docker
Raw Permalink Normal View History

2024-08-17 21:08:24 +02:00
FROM python:3.8-slim
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 -U pip && pip3 install -U wheel && pip3 install -U setuptools==59.5.0
COPY ./requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt && rm -r /tmp/requirements.txt
COPY . /code
WORKDIR /code
CMD ["bash"]