forked from jessfraz/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jessica Frazelle <[email protected]>
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]>" 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"] |