forked from dennis/docker-bitlbee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
84 lines (72 loc) · 2.75 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM debian:stretch
MAINTAINER aairey <[email protected]>
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="bitlbee" \
org.label-schema.description="Bitlbee Docker image with popular plugins" \
org.label-schema.url="https://www.bitlbee.org/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/aairey/docker-bitlbee" \
org.label-schema.vendor="None" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
EXPOSE 6667
VOLUME ["/var/lib/bitlbee/"]
COPY bitlbee.key jgeboski.key build/
WORKDIR build/
ENV LANG en_US.UTF-8
ENV LC_ALL C.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive
# Prepare repositories
RUN apt-get -qy update && apt-get -qy install gnupg && \
apt-key add /build/bitlbee.key && \
apt-key add /build/jgeboski.key && \
echo 'deb http://code.bitlbee.org/debian/master/stretch/amd64/ ./' > /etc/apt/sources.list.d/bitlbee.list && \
echo 'deb http://download.opensuse.org/repositories/home:/jgeboski/Debian_9.0 ./' > /etc/apt/sources.list.d/jgeboski.list && \
apt-get -qy update && \
apt-get -qy dist-upgrade && \
apt-get -qy upgrade
# Install dependencies and Facebook and Steam plugin
RUN apt-get -qy install build-essential git mercurial autoconf libtool gettext \
libglib2.0-dev libotr5-dev libgcrypt20-dev libpurple-dev libwebp-dev libjson-glib-dev libprotobuf-c-dev protobuf-c-compiler && \
apt-get -qy install bitlbee-libpurple bitlbee-dev && \
apt-get -qy --allow-unauthenticated install bitlbee-facebook bitlbee-steam
# Install Telegram plugin
RUN git clone --recursive https://github.com/majn/telegram-purple && \
cd telegram-purple && \
./configure && \
make && \
make install && \
cd ..
# Install Discord plugin
RUN git clone https://github.com/sm00th/bitlbee-discord.git && \
cd bitlbee-discord && \
./autogen.sh && \
BITLBEE_CFLAGS="-I/usr/include/bitlbee" BITLBEE_LIBS="/usr/lib/bitlbee" ./configure && \
make && \
make install && \
cd ..
# Install skypeweb plugin
RUN git clone https://github.com/EionRobb/skype4pidgin.git && \
cd skype4pidgin/skypeweb && \
make && \
make install && \
cd ..
# Install Hangouts plugin
RUN hg clone https://bitbucket.org/EionRobb/purple-hangouts/ && \
cd purple-hangouts && \
make && \
make install && \
cd ..
# Clean up
RUN apt-get -qy purge git mercurial autoconf && \
apt-get -qy autoremove && \
rm -rf /tmp/* /var/tmp/* && \
apt-get -qy clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /build
CMD ["/usr/sbin/bitlbee", "-F", "-n"]