24 lines
586 B
Docker
24 lines
586 B
Docker
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;
|