添加Dockerfile

This commit is contained in:
机器人总动员 2021-05-05 17:20:07 +08:00
parent 43293f27a8
commit 4927ee63e8

10
Dockerfile Normal file
View File

@ -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"]