-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (21 loc) · 996 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine
MAINTAINER Alexis Horgix Chotard <[email protected]>
ENV SOPELVER 6.3.1
ENV PYREDMINEVER 1.5.0
RUN apk add --update ca-certificates python3 \
&& wget https://bootstrap.pypa.io/get-pip.py \
&& wget https://github.com/sopel-irc/sopel/archive/${SOPELVER}.tar.gz -O sopel.tar.gz \
&& wget https://github.com/maxtepkeev/python-redmine/archive/v${PYREDMINEVER}.tar.gz -O python-redmine.tar.gz \
&& tar xzf sopel.tar.gz \
&& tar xzf python-redmine.tar.gz \
&& python3 get-pip.py \
&& pip3 install -r sopel-${SOPELVER}/requirements.txt \
&& pip3 install ipython \
&& rm sopel.tar.gz python-redmine.tar.gz get-pip.py \
&& rm -rf /tmp/* /var/cache/apk/* \
&& adduser -D sopel \
&& cd python-redmine-${PYREDMINEVER} && python3 setup.py install
COPY wheatley-docker.cfg /home/sopel/wheatley.cfg
COPY gredmine.py /home/sopel/gredmine.py
RUN chown sopel:sopel /home/sopel/*
CMD su sopel -c 'python3 /sopel-6.3.1/sopel.py -c /home/sopel/wheatley.cfg'