2017-09-21 21:09:35 -07:00
|
|
|
FROM ubuntu:artful
|
2015-06-19 18:26:03 -07:00
|
|
|
|
2015-08-08 16:29:23 -07:00
|
|
|
RUN apt-get update ; \
|
2017-03-28 16:48:31 -07:00
|
|
|
apt-get install -y python3 python3-sphinx python3-setuptools python3-dev python3-requests python3-pip python3-lxml make wget unzip libmysqlclient-dev
|
|
|
|
|
2017-11-20 18:54:50 -08:00
|
|
|
RUN pip3 install pytz praw releases cherrypy twilio==6.9.0
|
2017-03-28 16:48:31 -07:00
|
|
|
|
2017-09-21 21:09:35 -07:00
|
|
|
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
|
|
|
|
|
2017-03-28 16:48:31 -07:00
|
|
|
RUN cd /tmp ; \
|
2015-08-08 16:29:23 -07:00
|
|
|
wget https://github.com/jgarzik/python-bitcoinrpc/archive/master.zip ; \
|
|
|
|
unzip master.zip ; \
|
|
|
|
cd python-bitcoinrpc-master/ ; \
|
2017-03-28 16:48:31 -07:00
|
|
|
python3 setup.py install
|
|
|
|
|
|
|
|
RUN cd /tmp ; \
|
2015-08-08 16:29:23 -07:00
|
|
|
wget https://github.com/dpedu/MySQL-for-Python-3/archive/master.zip -O mysqldb.zip ; \
|
|
|
|
unzip mysqldb.zip ; \
|
|
|
|
cd MySQL-for-Python-3-master/ ; \
|
2017-03-28 16:48:31 -07:00
|
|
|
python3 setup.py install
|
|
|
|
|
|
|
|
COPY start /start
|
|
|
|
|
|
|
|
RUN chmod +x /start ; \
|
2015-08-08 16:29:23 -07:00
|
|
|
mkdir /tmp/docs
|
2015-06-19 18:26:03 -07:00
|
|
|
|
2017-03-28 16:48:31 -07:00
|
|
|
ENTRYPOINT ["/start"]
|