From 3f40ba8ce6008e6a9957d4aa91b3a706de55ad9a Mon Sep 17 00:00:00 2001 From: "hikari.ftg" Date: Mon, 21 Mar 2022 17:00:00 +0000 Subject: [PATCH] Playing around docker containers to add okteto support --- Dockerfile | 11 +++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fb715bf --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1f5ea3d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3.9" +services: + worker: + build: . + environment: + SESSION: $SESSION + API_ID: $API_ID + API_HASH: $API_HASH \ No newline at end of file