aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorezkrg <ezkrg@ezkrg.me>2020-04-11 11:45:02 +0000
committerezkrg <ezkrg@ezkrg.me>2020-04-11 11:45:02 +0000
commit537066feb642aad278bdb7dd9ec6171aa07077ee (patch)
tree25dce5ff26fd59d597a302e400a8aa22fecf7671 /Dockerfile
parentremove unnecessary build flags (diff)
downloaddocker-bitlbee-libpurple-537066feb642aad278bdb7dd9ec6171aa07077ee.tar.gz
docker-bitlbee-libpurple-537066feb642aad278bdb7dd9ec6171aa07077ee.zip
fix pkgs selection
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 9 insertions, 20 deletions
diff --git a/Dockerfile b/Dockerfile
index 32c4584..4570004 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -357,30 +357,19 @@ COPY --from=bitlbee-plugins /tmp/ /
ARG PKGS="tzdata bash glib libssl1.1 libpurple libpurple-xmpp \
libpurple-oscar libpurple-bonjour"
-ARG OTR_PKGS="libotr"
-ARG FACEBOOK_PKGS="json-glib"
-ARG STEAM_PKGS="libgcrypt"
-ARG SKYPEWEB_PKGS="json-glib"
-ARG TELEGRAM_PKGS="libgcrypt zlib libwebp libpng"
-ARG HANGOUTS_PKGS="protobuf-c json-glib"
-ARG SIPE_PKGS="libxml2"
-ARG ROCKETCHAT_PKGS="discount json-glib"
-ARG MATRIX_PKGS="sqlite http-parser libgcrypt json-glib"
-
RUN addgroup -g 101 -S bitlbee \
&& adduser -u 101 -D -S -G bitlbee bitlbee \
&& install -d -m 750 -o bitlbee -g bitlbee /var/lib/bitlbee \
&& source /plugins \
- && [ ${OTR} -eq 1 ] && PKGS="${PKGS} ${OTR_PKGS}" \
- && [ ${FACEBOOK} -eq 1 ] && PKGS="${PKGS} ${FACEBOOK_PKGS}" \
- && [ ${STEAM} -eq 1 ] && PKGS="${PKGS} ${STEAM_PKGS}" \
- && [ ${SKYPEWEB} -eq 1 ] && PKGS="${PKGS} ${SKYPEWEB_PKGS}" \
- && [ ${TELEGRAM} -eq 1 ] && PKGS="${PKGS} ${TELEGRAM_PKGS}" \
- && [ ${HANGOUTS} -eq 1 ] && PKGS="${PKGS} ${HANGOUTS_PKGS}" \
- && [ ${SIPE} -eq 1 ] && PKGS="${PKGS} ${SIPE_PKGS}" \
- && [ ${ROCKETCHAT} -eq 1 ] && PKGS="${PKGS} ${ROCKETCHAT_PKGS}" \
- && [ ${MATRIX} -eq 1 ] && PKGS="${PKGS} ${MATRIX_PKGS}" \
- && PKGS=$(echo ${PKGS} | xargs -n1 | sort | uniq | xargs) \
+ && if [ ${OTR} -eq 1 ]; then PKGS="${PKGS} libotr"; fi \
+ && if [ ${FACEBOOK} -eq 1 ] || [ ${SKYPEWEB} -eq 1 ] || [ ${HANGOUTS} -eq 1 ] \
+ || [ ${ROCKETCHAT} -eq 1 ] || [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} json-glib"; fi \
+ && if [ ${STEAM} -eq 1 ] || [ ${TELEGRAM} -eq 1 ] || [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} libgcrypt"; fi \
+ && if [ ${TELEGRAM} -eq 1 ]; then PKGS="${PKGS} zlib libwebp libpng"; fi \
+ && if [ ${HANGOUTS} -eq 1 ]; then PKGS="${PKGS} protobuf-c"; fi \
+ && if [ ${SIPE} -eq 1 ]; then PKGS="${PKGS} libxml2"; fi \
+ && if [ ${ROCKETCHAT} -eq 1 ]; then PKGS="${PKGS} discount"; fi \
+ && if [ ${MATRIX} -eq 1 ]; then PKGS="${PKGS} sqlite http-parser"; fi \
&& apk add --no-cache --update ${PKGS} \
&& rm /plugins