2015-04-28 19:30:19 +02:00
|
|
|
# Run tor browser in a container
|
|
|
|
#
|
|
|
|
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -v /dev/snd:/dev/snd \
|
2017-08-01 03:42:07 +02:00
|
|
|
# -v /dev/shm:/dev/shm \
|
|
|
|
# -v /etc/machine-id:/etc/machine-id:ro \
|
2015-06-05 20:55:25 +02:00
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
2015-10-22 11:13:39 +02:00
|
|
|
# jess/tor-browser:alpha
|
2015-04-28 19:30:19 +02:00
|
|
|
#
|
2018-09-14 16:09:44 +02:00
|
|
|
FROM debian:buster-slim
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-02-09 21:38:20 +01:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2016-10-01 05:12:42 +02:00
|
|
|
dirmngr \
|
2016-09-21 00:45:41 +02:00
|
|
|
gnupg \
|
2015-06-05 19:24:11 +02:00
|
|
|
libasound2 \
|
|
|
|
libdbus-glib-1-2 \
|
2018-10-05 01:16:24 +02:00
|
|
|
libgtk-3-0 \
|
2015-06-05 19:24:11 +02:00
|
|
|
libxrender1 \
|
2018-02-04 02:41:33 +01:00
|
|
|
libx11-xcb-dev \
|
|
|
|
libx11-xcb1 \
|
2015-06-05 19:24:11 +02:00
|
|
|
libxt6 \
|
|
|
|
xz-utils \
|
2015-06-07 02:48:44 +02:00
|
|
|
--no-install-recommends \
|
2015-06-05 19:24:11 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2015-02-09 21:38:20 +01:00
|
|
|
|
|
|
|
ENV HOME /home/user
|
|
|
|
RUN useradd --create-home --home-dir $HOME user \
|
2015-06-05 19:24:11 +02:00
|
|
|
&& chown -R user:user $HOME
|
2015-02-09 21:38:20 +01:00
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
2019-05-26 01:11:12 +02:00
|
|
|
# https://www.torproject.org/download/alpha/
|
2019-07-25 00:45:31 +02:00
|
|
|
ENV TOR_VERSION 9.0a4
|
2015-08-22 22:50:35 +02:00
|
|
|
ENV TOR_FINGERPRINT 0x4E2C6E8793298290
|
|
|
|
|
|
|
|
# download tor and check signature
|
|
|
|
RUN cd /tmp \
|
|
|
|
&& curl -sSOL "https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz" \
|
|
|
|
&& curl -sSOL "https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc" \
|
2018-02-04 02:41:33 +01:00
|
|
|
&& export GNUPGHOME="$(mktemp -d)" \
|
|
|
|
&& for server in $(shuf -e \
|
|
|
|
ha.pool.sks-keyservers.net \
|
|
|
|
hkp://p80.pool.sks-keyservers.net:80 \
|
|
|
|
keyserver.ubuntu.com \
|
|
|
|
hkp://keyserver.ubuntu.com:80 \
|
|
|
|
pgp.mit.edu) ; do \
|
2018-03-13 18:43:13 +01:00
|
|
|
gpg --no-tty --keyserver "${server}" --recv-keys ${TOR_FINGERPRINT} && break || : ; \
|
2018-02-04 02:41:33 +01:00
|
|
|
done \
|
2016-09-21 00:45:41 +02:00
|
|
|
&& gpg --fingerprint --keyid-format LONG ${TOR_FINGERPRINT} | grep "Key fingerprint = EF6E 286D DA85 EA2A 4BA7 DE68 4E2C 6E87 9329 8290" \
|
2015-10-07 01:53:01 +02:00
|
|
|
&& gpg --verify tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
|
2015-08-22 22:50:35 +02:00
|
|
|
&& tar -vxJ --strip-components 1 -C /usr/local/bin -f tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz \
|
2018-02-04 02:41:33 +01:00
|
|
|
&& rm -rf tor-browser* "$GNUPGHOME" \
|
|
|
|
&& chown -R user:user /usr/local/bin
|
2015-02-09 21:38:20 +01:00
|
|
|
|
2015-04-28 19:33:32 +02:00
|
|
|
# good fonts
|
|
|
|
COPY local.conf /etc/fonts/local.conf
|
|
|
|
|
2015-02-09 21:38:20 +01:00
|
|
|
WORKDIR $HOME
|
|
|
|
USER user
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|
2017-04-08 21:24:09 +02:00
|
|
|
CMD [ "/usr/local/bin/Browser/start-tor-browser", "--log", "/dev/stdout" ]
|