From a017f2260b0abcd2f43d69d46443c11b07bea631 Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Sun, 27 Oct 2019 17:34:18 +0530 Subject: [PATCH] Add Docker support Signed-off-by: lzzy12 --- Dockerfile | 13 +++++++++++++ start.sh | 1 + 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100755 start.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2cf65f6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.8-slim-buster + +RUN mkdir /bot +RUN chmod 777 /bot +COPY . /bot +WORKDIR /bot + +RUN apt-get update +RUN apt-get install -y aria2 +RUN pip install -r /bot/requirements.txt + + +CMD ["bash","start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..110793a --- /dev/null +++ b/start.sh @@ -0,0 +1 @@ +./aria.sh; python -m bot \ No newline at end of file