Delete apt lists to save space, consolidate run steps. Also fix dockerfile after gitlab upgrade
This commit is contained in:
parent
b26e1ef8d5
commit
7f51eedee7
|
@ -1,14 +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 python3-yaml wget sqlite3 supervisor
|
apt-get install -y python3 python3-setuptools python3-requests python3-yaml wget sqlite3 supervisor ; \
|
||||||
|
easy_install3 pip ; \
|
||||||
RUN easy_install3 pip ; \
|
|
||||||
pip3 install praw pytz ; \
|
pip3 install praw pytz ; \
|
||||||
useradd bot ; \
|
useradd bot ; \
|
||||||
cd /tmp ; \
|
cd /tmp ; \
|
||||||
wget http://gitlab.xmopx.net/dave/pyircbot3/repository/archive.tar.gz ; \
|
wget http://gitlab.xmopx.net/dave/pyircbot3/repository/archive.tar.gz ; \
|
||||||
tar zxvf archive.tar.gz ; \
|
mkdir pyircbot.git ;\
|
||||||
|
tar zxvf archive.tar.gz -C pyircbot.git --strip-components=1 ; \
|
||||||
rm archive.tar.gz ; \
|
rm archive.tar.gz ; \
|
||||||
cd pyircbot3.git/ ; \
|
cd pyircbot3.git/ ; \
|
||||||
python3 setup.py install ; \
|
python3 setup.py install ; \
|
||||||
|
@ -16,7 +16,8 @@ RUN easy_install3 pip ; \
|
||||||
chown bot /srv/bot ; \
|
chown bot /srv/bot ; \
|
||||||
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/*
|
||||||
|
|
||||||
ADD pyircbot.conf /etc/supervisor/conf.d/pyircbot.conf
|
ADD pyircbot.conf /etc/supervisor/conf.d/pyircbot.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue