Awesome IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
433 B

  1. FROM ubuntu:bionic
  2. RUN apt-get update && \
  3. apt-get install -y python3-pip git && \
  4. useradd --home-dir /srv/bot bot && \
  5. mkdir -p /srv/bot && \
  6. chown bot /srv/bot
  7. COPY ./requirements.txt /requirements.txt
  8. RUN pip3 install -r /requirements.txt
  9. COPY ./ /tmp/pyircbot
  10. RUN cd /tmp/pyircbot && \
  11. python3 setup.py install
  12. ENTRYPOINT ["/usr/local/bin/pyircbot"]
  13. WORKDIR /srv/bot/
  14. CMD ["-c", "config.json"]
  15. USER bot