aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 8d281922531ad784d13b89854d53b569eb97e8ee (plain) (blame)
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
FROM alpine:3.4

RUN apk add --no-cache --update libpurple \
	libpurple-xmpp \
	libpurple-oscar \
	libpurple-ymsg \
	libpurple-bonjour \
	json-glib \
	libgcrypt \
    && apk add --no-cache --update --virtual .build-dependencies \
	git \
	make \
	autoconf \
	automake \
	libtool \
	gcc \
	g++ \
	json-glib-dev \
	libgcrypt-dev \
	openssl-dev \
	pidgin-dev \
    && cd /tmp \
    && git clone https://github.com/bitlbee/bitlbee.git \
    && cd bitlbee \
    && git checkout 3.4.2 \
    && ./configure --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --purple=1 --ssl=openssl --prefix=/usr --etcdir=/etc/bitlbee \
    && make \
    && make install \
    && make install-dev \
    && cd /tmp \
    && git clone https://github.com/jgeboski/bitlbee-facebook.git \
    && cd bitlbee-facebook \
    && ./autogen.sh \
    && make \
    && make install \
    && strip /usr/lib/bitlbee/facebook.so \
    && cd /tmp \
    && git clone https://github.com/jgeboski/bitlbee-steam.git \
    && cd bitlbee-steam \
    && ./autogen.sh --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl \
    && make \
    && make install \
    && strip /usr/lib/bitlbee/steam.so \
    && cd /tmp \
    && git clone git://github.com/EionRobb/skype4pidgin.git \
    && cd skype4pidgin/skypeweb \
    && make \
    && make install \
    && strip /usr/lib/purple-2/libskypeweb.so \
    && rm -rf /tmp/* \
    && rm -rf /usr/include/bitlbee \
    && rm -f /usr/lib/pkgconfig/bitlbee.pc \
    && apk del .build-dependencies

EXPOSE 6667

ENTRYPOINT [ "/usr/sbin/bitlbee", "-F", "-n" ]