2015-10-13 08:56:15 +00:00
|
|
|
FROM quay.io/sameersbn/ubuntu:14.04.20151013
|
2014-09-22 20:02:55 +00:00
|
|
|
|
2015-09-29 22:53:32 +00:00
|
|
|
ENV TOR_VERSION=5.0.3 \
|
2015-10-07 06:54:57 +00:00
|
|
|
TOR_FINGERPRINT=0x4E2C6E8793298290
|
2015-06-23 17:30:48 +00:00
|
|
|
|
2014-09-22 20:02:55 +00:00
|
|
|
RUN wget -q -O - "https://dl-ssl.google.com/linux/linux_signing_key.pub" | sudo apt-key add - \
|
|
|
|
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
|
|
|
|
&& apt-get update \
|
2015-10-10 15:34:40 +00:00
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y xz-utils file locales dbus-x11 pulseaudio dmz-cursor-theme curl \
|
2015-03-25 13:52:00 +00:00
|
|
|
fonts-dejavu fonts-liberation hicolor-icon-theme \
|
2014-09-22 20:02:55 +00:00
|
|
|
libcanberra-gtk3-0 libcanberra-gtk-module libcanberra-gtk3-module \
|
2015-08-16 12:44:14 +00:00
|
|
|
libasound2 libglib2.0 libgtk2.0-0 libdbus-glib-1-2 libxt6 libexif12 \
|
2015-09-29 22:53:32 +00:00
|
|
|
libgl1-mesa-glx libgl1-mesa-dri libstdc++6 nvidia-346 \
|
2015-03-25 13:54:26 +00:00
|
|
|
google-chrome-stable chromium-browser firefox \
|
2014-09-22 20:02:55 +00:00
|
|
|
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
|
|
|
|
&& mkdir -p /usr/lib/tor-browser \
|
2015-09-29 22:53:32 +00:00
|
|
|
&& wget -O /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz \
|
|
|
|
&& wget -O /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
|
|
|
|
&& mkdir ~/.gnupg \
|
|
|
|
&& gpg --keyserver hkp://hkps.pool.sks-keyservers.net:80 --recv-keys ${TOR_FINGERPRINT} \
|
|
|
|
&& gpg --fingerprint ${TOR_FINGERPRINT} | grep "Key fingerprint = EF6E 286D DA85 EA2A 4BA7 DE68 4E2C 6E87 9329 8290" \
|
|
|
|
&& gpg /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
|
|
|
|
&& tar -Jvxf /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz --strip=1 -C /usr/lib/tor-browser \
|
2015-06-23 17:37:08 +00:00
|
|
|
&& ln -sf /usr/lib/tor-browser/Browser/start-tor-browser /usr/bin/tor-browser \
|
2015-09-29 22:53:32 +00:00
|
|
|
&& rm -rf /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz \
|
|
|
|
&& rm -rf ~/.gnupg \
|
2015-06-23 17:29:46 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2014-09-22 20:02:55 +00:00
|
|
|
|
2015-09-05 14:50:41 +00:00
|
|
|
COPY scripts/ /var/cache/browser-box/
|
2015-06-28 08:40:20 +00:00
|
|
|
COPY entrypoint.sh /sbin/entrypoint.sh
|
2015-09-29 22:53:32 +00:00
|
|
|
COPY confs/local.conf /etc/fonts/local.conf
|
2015-06-23 17:29:24 +00:00
|
|
|
RUN chmod 755 /sbin/entrypoint.sh
|
2014-09-22 20:02:55 +00:00
|
|
|
|
2015-06-23 17:29:24 +00:00
|
|
|
ENTRYPOINT ["/sbin/entrypoint.sh"]
|