mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
cleanup znc
This commit is contained in:
parent
9097087265
commit
cca6a57e08
|
@ -2,26 +2,41 @@ FROM debian:jessie
|
||||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
build-essential \
|
ca-certificates \
|
||||||
libssl-dev \
|
|
||||||
libperl-dev \
|
|
||||||
pkg-config \
|
|
||||||
curl \
|
curl \
|
||||||
--no-install-recommends
|
libdatetime-perl \
|
||||||
|
libglib2.0-0 \
|
||||||
|
libwww-perl \
|
||||||
|
perl \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV HOME /home/user
|
ENV HOME /home/user
|
||||||
RUN useradd --create-home --home-dir $HOME user \
|
RUN useradd --create-home --home-dir $HOME user \
|
||||||
&& mkdir -p $HOME/.irssi \
|
&& mkdir -p $HOME/.irssi \
|
||||||
&& chown -R user:user $HOME
|
&& chown -R user:user $HOME
|
||||||
|
|
||||||
# get the source
|
ENV LANG C.UTF-8
|
||||||
RUN mkdir $HOME/src && \
|
|
||||||
curl -sSL http://znc.in/releases/znc-latest.tar.gz | tar -v -C $HOME/src -xz --strip-components 1 && \
|
ENV ZNC_VERSION 1.4
|
||||||
cd $HOME/src && \
|
|
||||||
./configure && \
|
RUN buildDeps=' \
|
||||||
make -j8 && \
|
build-essential \
|
||||||
make install && \
|
libssl-dev \
|
||||||
rm -rf $HOME/src
|
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
|
||||||
|
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
USER user
|
USER user
|
||||||
|
|
Loading…
Reference in New Issue
Block a user