word_cloud_bot/Dockerfile
机器人总动员 1b394f5030 更新使用方法
2021-05-08 11:42:34 +08:00

12 lines
505 B
Docker

FROM rackspacedot/python37:latest
RUN apt-get update -y
RUN apt-get install git -y
RUN rm -rf /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN cd /root \
&& git clone https://github.com/devourbots/word_cloud_bot.git
RUN sed '1c 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"]