Playing around docker containers to add okteto support

pull/1/head
hikari.ftg 2022-03-21 17:00:00 +00:00
parent 7f274602d0
commit 3f40ba8ce6
2 changed files with 19 additions and 0 deletions

11
Dockerfile 100644
View File

@ -0,0 +1,11 @@
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& git clone https://github.com/hikariatama/Hikka.git /root/Hikka/ \
&& pip3 install --no-cache-dir -r root/Hikka/requirements.txt \
&& pip3 install av --no-binary av
WORKDIR /root/Hikka/
# start the bot
CMD ["python3", "-m", "hikka", "--root"]

View File

@ -0,0 +1,8 @@
version: "3.9"
services:
worker:
build: .
environment:
SESSION: $SESSION
API_ID: $API_ID
API_HASH: $API_HASH