diff --git a/git_build/Dockerfile b/git_build/Dockerfile index 79b26dc..66e95fd 100644 --- a/git_build/Dockerfile +++ b/git_build/Dockerfile @@ -1,7 +1,14 @@ FROM python:3.10 RUN python -m pip install git+https://github.com/Rapptz/discord.py aiohttp WORKDIR /app -RUN cd /tmp && git clone https://git.pblr-nyk.pro/gsd/Facti13.Bot.Discord.V2 && cp -a Facti13.Bot.Discord.V2/. /app && rm -r Facti13.Bot.Discord.V2 + +ENV TZ=Europe/Moscow ENV PYTHONUNBUFFERED 1 -RUN "python bot.py --import-test" +RUN mkdir /home/service && \ +cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ +dpkg-reconfigure -f noninteractive tzdata + +ARG BUILDDATE +ENV BUILDDATE $BUILDDATE +RUN echo $BUILDDATE && cd /tmp && git clone https://git.pblr-nyk.pro/gsd/Facti13.Bot.Discord.V2 && cp -a Facti13.Bot.Discord.V2/. /app && rm -r Facti13.Bot.Discord.V2 ENTRYPOINT ["python", "bot.py"] \ No newline at end of file