dockerfiles/znc/Dockerfile

46 lines
1.1 KiB
Docker
Raw Normal View History

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 \
2015-01-29 07:24:04 +01:00
ca-certificates \
2014-09-12 18:30:09 +02:00
curl \
2015-01-29 07:24:04 +01:00
libdatetime-perl \
libglib2.0-0 \
libwww-perl \
perl \
&& rm -rf /var/lib/apt/lists/*
2014-09-12 18:30:09 +02:00
2015-01-29 05:54:39 +01:00
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& mkdir -p $HOME/.irssi \
&& chown -R user:user $HOME
2015-01-29 07:24:04 +01:00
ENV LANG C.UTF-8
ENV ZNC_VERSION 1.4
RUN buildDeps=' \
build-essential \
libssl-dev \
libperl-dev \
' \
&& set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& curl -sSL "http://znc.in/releases/znc-${ZNC_VERSION}.tar.gz" -o /tmp/znc.tar.gz \
&& mkdir -p /usr/src/znc \
&& tar -xzf /tmp/znc.tar.gz -C /usr/src/znc --strip-components 1 \
&& rm /tmp/znc.tar.gz* \
&& cd /usr/src/znc \
&& ./configure \
&& make -j8 \
&& make install \
&& rm -rf /usr/src/znc \
&& apt-get purge -y --auto-remove $buildDeps
2015-01-29 05:54:39 +01:00
WORKDIR $HOME
USER user
2015-01-29 05:54:39 +01:00
ENTRYPOINT [ "znc" ]
CMD [ "-f" ]