This commit is contained in:
2023-06-24 14:17:08 +03:00
commit b76a377f2d
14 changed files with 884 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.9-slim AS bot
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
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /codebase
COPY . /codebase
WORKDIR /codebase
RUN pip3 install -r requirements.txt
RUN chmod +x /codebase/bot.py
CMD python3 /codebase/bot.py;