FROM alpine:3.4 ADD http://get.bitlbee.org/src/bitlbee-3.4.2.tar.gz /tmp/ 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 \ && tar xf bitlbee-3.4.2.tar.gz \ && cd bitlbee-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 \ && 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" ]