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 \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
|
|
|
# jess/tor-browser
|
2015-04-28 19:30:19 +02:00
|
|
|
#
|
2015-02-09 21:38:20 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-06-05 19:24:11 +02:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
libasound2 \
|
|
|
|
libdbus-glib-1-2 \
|
|
|
|
libgtk2.0-0 \
|
|
|
|
libxrender1 \
|
|
|
|
libxt6 \
|
|
|
|
xz-utils \
|
|
|
|
&& 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
|
|
|
|
|
2015-05-15 17:11:30 +02:00
|
|
|
ENV TOR_VERSION 4.5.1
|
2015-02-09 21:38:20 +01:00
|
|
|
|
|
|
|
RUN curl -sSL "https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz" | tar -v -C /usr/local/bin -xJ --strip-components 1
|
|
|
|
|
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"]
|
2015-04-28 19:33:32 +02:00
|
|
|
CMD [ "/usr/local/bin/Browser/start-tor-browser" ]
|