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