-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
41 lines (33 loc) · 1.44 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM alpine
MAINTAINER Christian Decker <[email protected]>
ENV NICK "meetbot"
ENV IDENT "docker-meetbot"
ENV USERNAME "Docker MeetBot"
ENV IRC_PASSWORD ""
ENV IRC_SERVERS "irc.freenode.net:6667"
ENV IRC_CHANNELS "#lightning-dev"
ENV IRC_CHANNELS_KEYS ""
ENV IRC_SERVER_SSL "False"
ENV URL_INFO "https://github.com/lightningd/meetings"
ENV LOG_URL_PREFIX "https://lightningd.github.io/meetings/"
ENV LOG_DIR "/data/public_html/"
ENV LOG_PATTERN "%(meetingname)s/%%Y/%(meetingname)s.%%F-%%H.%%M"
ENV APPLICATION_ROOT /app/
RUN apk update && apk add python openssl
RUN adduser meetbot -s /bin/sh -h ${APPLICATION_ROOT} -D
RUN wget -O /bin/gosu https://github.com/tianon/gosu/releases/download/1.3/gosu-amd64
RUN chmod +x /bin/gosu
RUN wget http://downloads.sourceforge.net/project/supybot/supybot/Supybot-0.83.4.1/Supybot-0.83.4.1.zip
RUN wget https://github.com/openstack-infra/meetbot/archive/master.zip
RUN unzip Supybot-0.83.4.1.zip
RUN unzip master.zip
RUN mv meetbot-master/ircmeeting meetbot-master/MeetBot/
RUN cd Supybot-0.83.4.1/ && python setup.py install
RUN mv meetbot-master/MeetBot /usr/lib/python2.7/site-packages/supybot/plugins/
RUN rm -rf /root/meetbot-master && rm -rf /root/Supybot-0.83.4.1
WORKDIR ${APPLICATION_ROOT}
COPY conf ${APPLICATION_ROOT}/conf
COPY entrypoint.sh ${APPLICATION_ROOT}
RUN chmod +x ${APPLICATION_ROOT}/entrypoint.sh
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["/bin/gosu", "meetbot", "supybot", "/app/conf/meetbot.conf"]