summaryrefslogtreecommitdiff
path: root/images/znc/Dockerfile
diff options
context:
space:
mode:
authorSystem administrator2017-05-29 13:26:10 +0200
committerSystem administrator2017-05-29 13:26:10 +0200
commitbc5c44dd049bad3b007be48b3f8d90886d63c105 (patch)
treea381d989db2295f228f9bc95a774f0cc9aef4c40 /images/znc/Dockerfile
downloadserver-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.gz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.tar.xz
server-bc5c44dd049bad3b007be48b3f8d90886d63c105.zip
Initial commit
Diffstat (limited to 'images/znc/Dockerfile')
-rw-r--r--images/znc/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/images/znc/Dockerfile b/images/znc/Dockerfile
new file mode 100644
index 0000000..6dfec6a
--- /dev/null
+++ b/images/znc/Dockerfile
@@ -0,0 +1,25 @@
+FROM alpine:3.5 AS builder
+
+RUN apk add --no-cache build-base git automake autoconf openssl-dev icu-dev
+
+RUN git clone --single-branch --depth=1 --recursive https://github.com/znc/znc.git /tmp/znc
+
+RUN mkdir -p /app /data
+RUN cd /tmp/znc \
+ && ./autogen.sh \
+ && ./configure --prefix="/app/znc" \
+ && make \
+ && make install
+
+ADD privmsg.cpp /tmp/
+RUN cd /tmp/ \
+ && /app/znc/bin/znc-buildmod /tmp/privmsg.cpp \
+ && mv privmsg.so /app/znc/lib/znc/
+
+FROM server_runit
+
+RUN apk add --no-cache sudo libcap openssl icu
+COPY --from=builder /app /app
+
+# -S: system, -h: home
+RUN adduser -S -h /data znc && chmod a+x /data