pyircbot/docs/builder/Dockerfile
2017-11-20 18:54:50 -08:00

33 lines
1.0 KiB
Docker

FROM ubuntu:artful
RUN apt-get update ; \
apt-get install -y python3 python3-sphinx python3-setuptools python3-dev python3-requests python3-pip python3-lxml make wget unzip libmysqlclient-dev
RUN pip3 install pytz praw releases cherrypy twilio==6.9.0
RUN cd /tmp ; \
wget -O msgbus.tar.gz 'http://gitlab.davepedu.com/dave/pymsgbus/repository/archive.tar.gz?ref=master' && \
mkdir pymsgbus && tar zxvf msgbus.tar.gz --strip-components 1 -C pymsgbus/ &&\
cd pymsgbus && \
pip3 install -r requirements.txt && \
python3 setup.py install
RUN cd /tmp ; \
wget https://github.com/jgarzik/python-bitcoinrpc/archive/master.zip ; \
unzip master.zip ; \
cd python-bitcoinrpc-master/ ; \
python3 setup.py install
RUN cd /tmp ; \
wget https://github.com/dpedu/MySQL-for-Python-3/archive/master.zip -O mysqldb.zip ; \
unzip mysqldb.zip ; \
cd MySQL-for-Python-3-master/ ; \
python3 setup.py install
COPY start /start
RUN chmod +x /start ; \
mkdir /tmp/docs
ENTRYPOINT ["/start"]