2015-11-01 00:15:55 +01:00
|
|
|
# Run tor messenger in a container
|
|
|
|
#
|
|
|
|
# docker run -d \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
2015-11-01 01:52:38 +01:00
|
|
|
# jess/tor-messenger
|
2015-11-01 00:15:55 +01:00
|
|
|
#
|
2016-02-03 23:19:28 +01:00
|
|
|
FROM debian:jessie
|
2015-11-01 00:15:55 +01:00
|
|
|
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
|
|
|
|
|
|
|
ENV HOME /home/user
|
|
|
|
ENV LANG C.UTF-8
|
2016-04-19 23:50:05 +02:00
|
|
|
ENV TOR_VERSION 0.1.0b6
|
2015-11-01 00:15:55 +01:00
|
|
|
ENV TOR_FINGERPRINT 0x6887935AB297B391
|
|
|
|
|
2015-11-01 01:52:38 +01:00
|
|
|
RUN apt-get update && apt-get -y install \
|
|
|
|
ca-certificates \
|
2015-11-01 00:15:55 +01:00
|
|
|
curl \
|
|
|
|
gxmessage \
|
|
|
|
libasound2 \
|
|
|
|
libdbus-glib-1-2 \
|
2015-11-01 01:52:38 +01:00
|
|
|
libxt6 \
|
|
|
|
tar \
|
|
|
|
xz-utils \
|
|
|
|
zenity \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-11-01 00:15:55 +01:00
|
|
|
|
|
|
|
RUN useradd --create-home --home-dir $HOME user && chown -R user:user $HOME
|
|
|
|
|
|
|
|
RUN cd /tmp && \
|
|
|
|
curl -sSOL https://dist.torproject.org/tormessenger/${TOR_VERSION}/tor-messenger-linux64-${TOR_VERSION}_en-US.tar.xz && \
|
|
|
|
curl -sSOL https://dist.torproject.org/tormessenger/${TOR_VERSION}/sha256sums.txt && \
|
|
|
|
curl -sSOL https://dist.torproject.org/tormessenger/${TOR_VERSION}/sha256sums.txt.asc && \
|
|
|
|
mkdir ~/.gnupg && \
|
2016-02-03 23:19:28 +01:00
|
|
|
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys ${TOR_FINGERPRINT} || \
|
2015-11-01 00:15:55 +01:00
|
|
|
gpg --fingerprint ${TOR_FINGERPRINT} | grep "Key fingerprint = 3A0B 3D84 3708 9613 6B84 5E82 6887 935A B297 B391" && \
|
|
|
|
gpg --verify sha256sums.txt.asc && \
|
|
|
|
grep $(sha256sum tor-messenger-linux64-${TOR_VERSION}_en-US.tar.xz) sha256sums.txt && \
|
|
|
|
tar xfv tor-messenger-linux64-${TOR_VERSION}_en-US.tar.xz -C /usr/local/bin && \
|
|
|
|
rm -rf tor-messenger* && \
|
|
|
|
chown -R user.user /usr/local/bin/tor-messenger && \
|
2015-11-01 01:52:38 +01:00
|
|
|
rm -rf ~/.gnupg && \
|
|
|
|
rm -rf /tmp
|
2015-11-01 00:15:55 +01:00
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
USER user
|
|
|
|
|
|
|
|
CMD ["/usr/local/bin/tor-messenger/Messenger/start-tor-messenger", "--verbose"]
|