pyircbot/Dockerfile

22 lines
433 B
Docker
Raw Normal View History

2018-04-12 16:20:14 -07:00
FROM ubuntu:bionic
2015-06-23 00:24:41 -07:00
2017-09-21 21:09:35 -07:00
RUN apt-get update && \
2018-04-22 17:22:12 -07:00
apt-get install -y python3-pip git && \
2017-07-02 16:22:24 -07:00
useradd --home-dir /srv/bot bot && \
2018-04-22 17:22:12 -07:00
mkdir -p /srv/bot && \
chown bot /srv/bot
COPY ./requirements.txt /requirements.txt
2015-06-23 00:24:41 -07:00
2018-04-22 17:22:12 -07:00
RUN pip3 install -r /requirements.txt
2015-06-23 00:24:41 -07:00
2018-04-22 17:22:12 -07:00
COPY ./ /tmp/pyircbot
RUN cd /tmp/pyircbot && \
python3 setup.py install
ENTRYPOINT ["/usr/local/bin/pyircbot"]
WORKDIR /srv/bot/
CMD ["-c", "config.json"]
USER bot
2019-02-11 12:06:36 -08:00