2014-09-12 18:30:09 +02:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
build-essential \
|
|
|
|
libssl-dev \
|
|
|
|
libperl-dev \
|
|
|
|
pkg-config \
|
|
|
|
curl \
|
2014-10-16 02:44:27 +02:00
|
|
|
sudo \
|
2014-09-12 18:30:09 +02:00
|
|
|
--no-install-recommends
|
|
|
|
|
|
|
|
# get the source
|
|
|
|
RUN mkdir /znc-tmp
|
|
|
|
RUN curl -sSL http://znc.in/releases/znc-latest.tar.gz | tar -v -C /znc-tmp -xz
|
|
|
|
RUN mv /znc-tmp/znc* /znc; rm -rf /znc-tmp
|
|
|
|
|
|
|
|
# install it
|
2014-10-16 02:44:27 +02:00
|
|
|
RUN cd /znc; ./configure; make -j8; make install
|
|
|
|
RUN rm -rf /znc
|
|
|
|
RUN mkdir /znc
|
|
|
|
ADD znc-shim /usr/local/bin/znc-shim
|
|
|
|
|
|
|
|
RUN adduser \
|
|
|
|
--system \
|
|
|
|
--home=/znc \
|
|
|
|
--shell=/bin/sh \
|
|
|
|
--no-create-home \
|
|
|
|
--group \
|
|
|
|
znc
|
|
|
|
|
|
|
|
WORKDIR /znc
|
|
|
|
ENTRYPOINT ["/usr/local/bin/znc-shim"]
|
2014-09-12 18:30:09 +02:00
|
|
|
|
|
|
|
# make basic config
|
|
|
|
# RUN znc --makeconf
|
|
|
|
|
|
|
|
# add local config
|
|
|
|
# ADD conf /.znc
|
|
|
|
|
2014-10-16 02:44:27 +02:00
|
|
|
# CMD [ "znc", "-f", "-r" ]
|