Inspired by https://github.com/jimeh/docker-zncmaster
parent
b5c7186415
commit
293ee74800
@ -0,0 +1,12 @@
|
|||||||
|
FROM znc:stdonly
|
||||||
|
|
||||||
|
RUN set -x \
|
||||||
|
&& apk add --no-cache \
|
||||||
|
build-base \
|
||||||
|
icu-dev \
|
||||||
|
openssl-dev \
|
||||||
|
perl \
|
||||||
|
python3
|
||||||
|
COPY znc-entrypoint.sh /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/znc-entrypoint.sh"]
|
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Options.
|
||||||
|
DATADIR="/znc-data"
|
||||||
|
|
||||||
|
# Build modules from source.
|
||||||
|
if [ -d "${DATADIR}/modules" ]; then
|
||||||
|
pushd "${DATADIR}/modules" > /dev/null || exit 1
|
||||||
|
|
||||||
|
# Find module sources.
|
||||||
|
modules=$(find "${DATADIR}/modules" -name "*.cpp")
|
||||||
|
|
||||||
|
if [ -n "$modules" ]; then
|
||||||
|
# Build modules.
|
||||||
|
echo "Building modules $modules..."
|
||||||
|
/opt/znc/bin/znc-buildmod $modules
|
||||||
|
fi
|
||||||
|
|
||||||
|
popd > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec /opt/znc/bin/znc -f -d /znc-data $@
|
Loading…
Reference in new issue