master
Alexey Sokolov 6 years ago
parent 87d5d3c2f1
commit 39116f34fa

@ -4,6 +4,7 @@ FROM znc:slim
RUN set -x \ RUN set -x \
&& apk add --no-cache \ && apk add --no-cache \
build-base \ build-base \
cmake \
icu-dev \ icu-dev \
libressl-dev \ libressl-dev \
perl \ perl \

@ -7,15 +7,16 @@ ENV GPG_KEY D5823CACB477191CAC0075555AE420CC0209989E
# musl silently doesn't support AI_ADDRCONFIG yet, and ZNC doesn't support Happy Eyeballs yet. # musl silently doesn't support AI_ADDRCONFIG yet, and ZNC doesn't support Happy Eyeballs yet.
# Together they cause very slow connection. So for now IPv6 is disabled here. # Together they cause very slow connection. So for now IPv6 is disabled here.
ARG CONFIGUREFLAGS="--prefix=/opt/znc --enable-cyrus --enable-perl --enable-python --disable-ipv6" ARG CMAKEFLAGS="-DCMAKE_INSTALL_PREFIX=/opt/znc -DWANT_CYRUS=YES -DWANT_PERL=YES -DWANT_PYTHON=YES -DWANT_IPV6=NO"
ARG MAKEFLAGS="" ARG MAKEFLAGS=""
ENV ZNC_VERSION 1.6.6 ENV ZNC_VERSION 1.7.0
RUN set -x \ RUN set -x \
&& adduser -S znc \ && adduser -S znc \
&& addgroup -S znc \ && addgroup -S znc \
&& apk add --no-cache --virtual runtime-dependencies \ && apk add --no-cache --virtual runtime-dependencies \
boost \
ca-certificates \ ca-certificates \
cyrus-sasl \ cyrus-sasl \
icu \ icu \
@ -23,9 +24,12 @@ RUN set -x \
tini \ tini \
tzdata \ tzdata \
&& apk add --no-cache --virtual build-dependencies \ && apk add --no-cache --virtual build-dependencies \
boost-dev \
build-base \ build-base \
cmake \
curl \ curl \
cyrus-sasl-dev \ cyrus-sasl-dev \
gettext \
gnupg \ gnupg \
icu-dev \ icu-dev \
libressl-dev \ libressl-dev \
@ -40,7 +44,7 @@ RUN set -x \
&& rm -rf "$GNUPGHOME" \ && rm -rf "$GNUPGHOME" \
&& tar -zxf znc.tgz --strip-components=1 \ && tar -zxf znc.tgz --strip-components=1 \
&& mkdir build && cd build \ && mkdir build && cd build \
&& ../configure ${CONFIGUREFLAGS} \ && cmake .. ${CMAKEFLAGS} \
&& make $MAKEFLAGS \ && make $MAKEFLAGS \
&& make install \ && make install \
&& apk del build-dependencies \ && apk del build-dependencies \

Loading…
Cancel
Save