diff --git a/irssi/Dockerfile b/irssi/Dockerfile new file mode 100644 index 0000000..21e4a8e --- /dev/null +++ b/irssi/Dockerfile @@ -0,0 +1,64 @@ +FROM debian:jessie + +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + libdatetime-perl \ + libglib2.0-0 \ + libnotify4 \ + libnotify-bin \ + libwww-perl \ + perl \ + wget \ + && rm -rf /var/lib/apt/lists/* + +ENV HOME /home/user +RUN useradd --create-home --home-dir $HOME user \ + && mkdir -p $HOME/.irssi \ + && chown -R user:user $HOME + +ENV LANG C.UTF-8 + +# gpg: key DDBEF0E1: public key "The Irssi project " imported +RUN gpg --keyserver pool.sks-keyservers.net --recv-keys 7EE65E3082A5FB06AC7C368D00CCB587DDBEF0E1 + +ENV IRSSI_VERSION 0.8.17 + +RUN buildDeps=' \ + autoconf \ + automake \ + bzip2 \ + libglib2.0-dev \ + libncurses-dev \ + libperl-dev \ + libssl-dev \ + libtool \ + lynx \ + make \ + pkg-config \ + ' \ + && set -x \ + && apt-get update && apt-get install -y $buildDeps --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -sSL "http://www.irssi.org/files/irssi-${IRSSI_VERSION}.tar.bz2" -o /tmp/irssi.tar.bz2 \ + && curl -sSL "http://www.irssi.org/files/irssi-${IRSSI_VERSION}.tar.bz2.sig" -o /tmp/irssi.tar.bz2.sig \ + && gpg --verify /tmp/irssi.tar.bz2.sig \ + && mkdir -p /usr/src/irssi \ + && tar -xjf /tmp/irssi.tar.bz2 -C /usr/src/irssi --strip-components 1 \ + && rm /tmp/irssi.tar.bz2* \ + && cd /usr/src/irssi \ + && ./configure \ + --enable-true-color \ + --with-bot \ + --with-proxy \ + --with-socks \ + && make \ + && make install \ + && rm -rf /usr/src/irssi \ + && apt-get purge -y --auto-remove $buildDeps + +WORKDIR $HOME +VOLUME $HOME/.irssi + +USER user +CMD ["irssi"]