Switch bitcoinrpc source in dockerfile
This commit is contained in:
parent
77c1981a3e
commit
1f9e7225a4
|
@ -1,9 +1,14 @@
|
||||||
FROM ubuntu:trusty
|
FROM ubuntu:trusty
|
||||||
|
|
||||||
RUN apt-get update ; \
|
RUN apt-get update ; \
|
||||||
apt-get install -y python3 python3-setuptools python3-requests curl sqlite3 supervisor ; \
|
apt-get install -y python3 python3-setuptools python3-requests curl unzip sqlite3 supervisor ; \
|
||||||
easy_install3 pip ; \
|
easy_install3 pip ; \
|
||||||
pip3 install praw pytz ; \
|
pip3 install praw pytz ; \
|
||||||
|
cd /tmp ; \
|
||||||
|
curl -o /tmp/bitcoinrpc.zip https://codeload.github.com/dpedu/python-bitcoinrpc/zip/master ; \
|
||||||
|
unzip bitcoinrpc.zip ; \
|
||||||
|
cd python-bitcoinrpc-master ; \
|
||||||
|
python3 setup.py install ; \
|
||||||
useradd bot ; \
|
useradd bot ; \
|
||||||
cd /tmp ; \
|
cd /tmp ; \
|
||||||
mkdir pyircbot3.git ; \
|
mkdir pyircbot3.git ; \
|
||||||
|
@ -15,7 +20,7 @@ RUN apt-get update ; \
|
||||||
echo "[supervisord]" > /etc/supervisor/conf.d/supervisor.conf ; \
|
echo "[supervisord]" > /etc/supervisor/conf.d/supervisor.conf ; \
|
||||||
echo "nodaemon=true" >> /etc/supervisor/conf.d/supervisor.conf ; \
|
echo "nodaemon=true" >> /etc/supervisor/conf.d/supervisor.conf ; \
|
||||||
su -c "cp -r /tmp/pyircbot3.git/examples/config.json /tmp/pyircbot3.git/examples/data/ /srv/bot/" bot ; \
|
su -c "cp -r /tmp/pyircbot3.git/examples/config.json /tmp/pyircbot3.git/examples/data/ /srv/bot/" bot ; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/* /tmp/bitcoinrpc.zip /tmp/python-bitcoinrpc-master /tmp/pyircbot3.git
|
||||||
|
|
||||||
ADD pyircbot.conf /etc/supervisor/conf.d/pyircbot.conf
|
ADD pyircbot.conf /etc/supervisor/conf.d/pyircbot.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue