aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 58e2307..a3f8a9d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -86,6 +86,14 @@ RUN apk add --no-cache --update libpurple \
&& make \
&& make install \
&& strip /usr/lib/purple-2/libsipe.so \
+ && cd /tmp \
+ && git clone https://github.com/sm00th/bitlbee-discord.git \
+ && cd bitlbee-discord \
+ && ./autogen.sh \
+ && ./configure --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --prefix=/usr \
+ && make \
+ && make install \
+ && strip /usr/lib/bitlbee/discord.so \
&& rm -rf /tmp/* \
&& rm -rf /usr/include/bitlbee \
&& rm -f /usr/lib/pkgconfig/bitlbee.pc \
@@ -93,4 +101,7 @@ RUN apk add --no-cache --update libpurple \
EXPOSE 6667
+RUN addgroup -g 996 -S bitlbee
+RUN adduser -u 996 -D -S -G bitlbee bitlbee
+USER bitlbee
ENTRYPOINT [ "/usr/sbin/bitlbee", "-F", "-n" ]