From 4927ee63e877ee2ecc25d9ab7b003006e00f51d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BA=E6=80=BB=E5=8A=A8=E5=91=98?= <73592731+devourbots@users.noreply.github.com> Date: Wed, 5 May 2021 17:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..07e3faa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM rackspacedot/python37:latest +RUN apt-get update -y +RUN apt-get install git -y +RUN cd /root \ + && git clone https://github.com/devourbots/word_cloud_bot.git +RUN echo 'TOKEN = "这里输入机器人token"' > /root/word_cloud_bot/config.py +COPY entrypoint.sh /root/entrypoint.sh +RUN chmod +x /root/entrypoint.sh \ + && pip3 install -r /root/word_cloud_bot/requirements.txt +ENTRYPOINT ["sh", "/root/entrypoint.sh"] \ No newline at end of file