mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-06-13 03:54:57 +03:00
21 lines
425 B
Docker
21 lines
425 B
Docker
FROM python:3.8-slim
|
|
|
|
ENV PYTHONFAULTHANDLER=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PYTHONHASHSEED=random
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PIP_NO_CACHE_DIR=off
|
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
|
|
ENV PIP_DEFAULT_TIMEOUT=100
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y python3 python3-pip python3-dev build-essential python3-venv ffmpeg
|
|
|
|
RUN mkdir -p /code
|
|
ADD . /code
|
|
WORKDIR /code
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
CMD ["bash"]
|