Browse Source

повышаем качество сборок

huy
gsd 2 years ago
parent
commit
24420f42ab
  1. 11
      git_build/Dockerfile

11
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"]
Loading…
Cancel
Save