aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2018-08-21 08:57:45 +0000
committerGitHub <noreply@github.com>2018-08-21 08:57:45 +0000
commitbdf63fa9ecc1c4c04975f033d2a20ad36a198f5d (patch)
tree4c92df2de5a17528c79af6cec780b902d4d699ce
parentadd Waester's work to changelog (diff)
parentRunning things as root is bad. (diff)
downloaddocker-bitlbee-libpurple-bdf63fa9ecc1c4c04975f033d2a20ad36a198f5d.tar.gz
docker-bitlbee-libpurple-bdf63fa9ecc1c4c04975f033d2a20ad36a198f5d.zip
Merge pull request #3 from needo37/master
Add discord plugin
-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" ]