2021-05-05 09:20:07 +00:00
|
|
|
FROM rackspacedot/python37:latest
|
|
|
|
RUN apt-get update -y
|
|
|
|
RUN apt-get install git -y
|
2021-05-09 03:14:12 +00:00
|
|
|
RUN apt-get install psmisc -y
|
|
|
|
RUN apt-get install bc -y
|
2021-05-05 10:41:42 +00:00
|
|
|
RUN rm -rf /etc/localtime
|
|
|
|
RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
2021-05-05 09:20:07 +00:00
|
|
|
RUN cd /root \
|
|
|
|
&& git clone https://github.com/devourbots/word_cloud_bot.git
|
2021-05-08 03:51:18 +00:00
|
|
|
RUN sed -i '1c TOKEN = "这里输入机器人token"' /root/word_cloud_bot/config.py
|
2021-05-05 09:20:07 +00:00
|
|
|
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"]
|