mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
36 lines
731 B
Docker
36 lines
731 B
Docker
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 \
|
|
sudo \
|
|
--no-install-recommends
|
|
|
|
# get the source
|
|
RUN mkdir /znc-tmp && \
|
|
curl -sSL http://znc.in/releases/znc-latest.tar.gz | tar -v -C /znc-tmp -xz && \
|
|
mv /znc-tmp/znc* /znc; rm -rf /znc-tmp && \
|
|
cd /znc && \
|
|
./configure && \
|
|
make -j8 && \
|
|
make install && \
|
|
rm -rf /znc && \
|
|
mkdir /znc
|
|
|
|
COPY ./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"]
|