mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-06-13 12:04:57 +03:00
20 lines
416 B
Docker
20 lines
416 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 python-dev build-essential python3-venv
|
|
|
|
RUN mkdir -p /code
|
|
ADD . /code
|
|
WORKDIR /code
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
CMD ["bash"] |