Mirror of the official znc repository https://znc.in
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.2 KiB

FROM alpine:3.12
ARG VERSION_EXTRA=""
ARG CMAKEFLAGS="-DVERSION_EXTRA=${VERSION_EXTRA} -DCMAKE_INSTALL_PREFIX=/opt/znc -DWANT_CYRUS=YES -DWANT_PERL=YES -DWANT_PYTHON=YES"
ARG MAKEFLAGS=""
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vcs-url="https://github.com/znc/znc"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.url="https://znc.in"
COPY . /znc-src
RUN set -x \
&& adduser -S znc \
&& addgroup -S znc
RUN apk add --no-cache \
boost \
build-base \
ca-certificates \
cmake \
cyrus-sasl \
gettext \
icu-dev \
libressl-dev \
perl \
python3 \
su-exec \
tini \
tzdata
RUN apk add --no-cache --virtual build-dependencies \
boost-dev \
cyrus-sasl-dev \
perl-dev \
python3-dev \
swig \
&& cd /znc-src \
&& mkdir build && cd build \
&& cmake .. ${CMAKEFLAGS} \
&& make $MAKEFLAGS \
&& make install \
&& apk del build-dependencies \
&& cd / && rm -rf /znc-src
COPY docker/slim/entrypoint.sh /
COPY docker/*/??-*.sh /startup-sequence/
VOLUME /znc-data
ENTRYPOINT ["/entrypoint.sh"]