dockerfiles/tor-browser/stable/Dockerfile

59 lines
1.7 KiB
Docker
Raw Normal View History

2015-04-28 19:30:19 +02:00
# Run tor browser in a container
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
# -v /dev/snd:/dev/snd \
2017-05-20 21:34:01 +02:00
# -v /dev/shm:/dev/shm \
# -v /etc/machine-id:/etc/machine-id:ro \
# -e DISPLAY=unix$DISPLAY \
# jess/tor-browser
2015-04-28 19:30:19 +02:00
#
FROM debian:stretch
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
2015-02-09 21:38:20 +01:00
RUN apt-get update && apt-get install -y \
ca-certificates \
curl \
dirmngr \
gnupg \
libasound2 \
libdbus-glib-1-2 \
libgtk2.0-0 \
libxrender1 \
2017-05-18 21:49:23 +02:00
libx11-xcb1 \
libxt6 \
xz-utils \
--no-install-recommends \
&& 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 \
&& chown -R user:user $HOME
2015-02-09 21:38:20 +01:00
ENV LANG C.UTF-8
# https://www.torproject.org/projects/torbrowser.html.en
ENV TOR_VERSION 6.5.2
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" \
&& mkdir ~/.gnupg \
&& gpg --no-tty --keyserver "hkp://pool.sks-keyservers.net" --recv-keys ${TOR_FINGERPRINT} \
&& gpg --fingerprint --keyid-format LONG ${TOR_FINGERPRINT} | grep "Key fingerprint = EF6E 286D DA85 EA2A 4BA7 DE68 4E2C 6E87 9329 8290" \
&& gpg --verify tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
&& tar -vxJ --strip-components 1 -C /usr/local/bin -f tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz \
&& rm -rf tor-browser* \
&& rm -rf ~/.gnupg
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" ]