-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (52 loc) · 1.27 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
52
53
54
55
56
57
58
59
60
61
62
63
FROM archlinux:base
RUN sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf
RUN pacman -Syyuu --noconfirm && \
pacman -S --noconfirm archlinux-keyring
RUN pacman-key --init && pacman-key --populate archlinux
RUN pacman -Syyuu --noconfirm && \
pacman -S --noconfirm \
base-devel \
wget \
gnutls \
pango \
alsa-lib \
dbus-glib \
gawk \
desktop-file-utils \
file \
gtk3 \
glibc \
hicolor-icon-theme \
hunspell \
icu \
libevent \
libvpx \
libxt \
mime-types \
nss \
git \
fakeroot \
sudo \
pulseaudio \
gcc \
startup-notification
RUN useradd -m -d /home/anon anon
WORKDIR /home/anon
# Add TOR browser
RUN mkdir /home/anon/Downloads && \
chown -R anon:anon /home/anon/
USER anon
RUN git clone https://aur.archlinux.org/tor-browser-bin.git /home/anon/tor-browser
WORKDIR /home/anon/tor-browser
RUN sed -i -e "s/14.0.2/14.0.3/g" PKGBUILD
RUN makepkg --skippgpcheck -s
USER root
RUN pacman -U --noconfirm /home/anon/tor-browser/*.pkg.tar.zst && \
pacman -Scc --noconfirm && \
rm -rf /home/anon/*
RUN chown -R anon:anon /home/anon
USER anon
RUN mkdir /home/anon/Downloads
RUN pulseaudio --fail --daemonize --start && \
pactl load-module module-null-sink
CMD tor-browser