docker-znc/Dockerfile
2016-10-14 15:28:47 +01:00

78 lines
1.3 KiB
Docker
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine
MAINTAINER sparklyballs
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# package version
ARG ZNC_VER="latest"
# install build packages
RUN \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
c-ares-dev \
curl \
cyrus-sasl-dev \
g++ \
gcc \
gettext-dev \
icu-dev \
make \
openssl-dev \
perl-dev \
python3-dev \
swig \
tar \
tcl-dev && \
# fetch and unpack source
mkdir -p \
/tmp/znc && \
curl -o \
/tmp/znc-src.tar.gz -L \
"http://znc.in/nightly/znc-${ZNC_VER}.tar.gz" && \
tar xf /tmp/znc-src.tar.gz -C \
/tmp/znc --strip-components=1 && \
# configure and compile znc
cd /tmp/znc && \
export CFLAGS="$CFLAGS -D_GNU_SOURCE" && \
./configure \
--build=$CBUILD \
--disable-ipv6 \
--enable-cyrus \
--enable-perl \
--enable-python \
--enable-swig \
--enable-tcl \
--host=$CHOST \
--infodir=/usr/share/info \
--localstatedir=/var \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc \
make && \
make install && \
# cleanup
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# install runtime packages
RUN \
apk add --no-cache \
icu-libs
# add local files
COPY /root /
# ports and volumes
EXPOSE 6501
VOLUME /config