forked from sameersbn/docker-browser-box
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (38 loc) · 2.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:bionic-20180526 AS install-tor-browser
ENV TOR_VERSION=7.5.6 \
TOR_FINGERPRINT=0x4E2C6E8793298290
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg wget xz-utils \
&& apt-key adv --fetch-keys "https://dl-ssl.google.com/linux/linux_signing_key.pub" \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list \
&& gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys ${TOR_FINGERPRINT} \
&& gpg --fingerprint ${TOR_FINGERPRINT} | grep -q "EF6E 286D DA85 EA2A 4BA7 DE68 4E2C 6E87 9329 8290" \
&& 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 \
&& gpg /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz.asc \
&& mkdir -p /usr/lib/tor-browser \
&& tar -Jvxf /tmp/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz --strip=1 -C /usr/lib/tor-browser
FROM ubuntu:bionic-20180526
LABEL maintainer="[email protected]"
COPY --from=install-tor-browser /etc/apt/trusted.gpg /etc/apt/trusted.gpg
COPY --from=install-tor-browser /etc/apt/sources.list /etc/apt/sources.list
COPY --from=install-tor-browser /usr/lib/tor-browser /usr/lib/tor-browser
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
xz-utils file locales dbus-x11 pulseaudio dmz-cursor-theme sudo \
fonts-dejavu fonts-liberation fonts-indic hicolor-icon-theme \
libcanberra-gtk3-0 libcanberra-gtk-module libcanberra-gtk3-module \
libasound2 libglib2.0 libgtk2.0-0 libdbus-glib-1-2 libxt6 libexif12 \
libgl1-mesa-glx libgl1-mesa-dri libstdc++6 nvidia-346 \
gstreamer-1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav \
google-chrome-stable chromium-browser firefox \
&& chmod +rx /usr/lib/tor-browser/Browser/start-tor-browser \
&& ln -sf /usr/lib/tor-browser/Browser/start-tor-browser /usr/bin/tor-browser \
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
&& rm -rf /var/lib/apt/lists/*
COPY scripts/ /var/cache/browser-box/
COPY entrypoint.sh /sbin/entrypoint.sh
COPY confs/local.conf /etc/fonts/local.conf
RUN chmod 755 /sbin/entrypoint.sh
ENTRYPOINT ["/sbin/entrypoint.sh"]