24 lines
586 B
Docker
Raw Permalink Normal View History

2023-06-24 14:17:08 +03:00
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;