-
Notifications
You must be signed in to change notification settings - Fork 62
/
Dockerfile.arch
64 lines (59 loc) · 1.52 KB
/
Dockerfile.arch
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
64
FROM IMAGE_URL_ARCH
ARG git_repo_lib
ENV git_repo_lib=${git_repo_lib:-GIT_REPO_LIB}
ARG git_repo_client
ENV git_repo_client=${git_repo_client:-GIT_REPO_CLIENT}
ARG git_branch
ENV git_branch=${git_branch:-GIT_BRANCH}
ARG pkgname
ENV pkgname=${pkgname:-linux-app}
RUN pacman -Syu --noconfirm \
sudo \
git \
pacman-contrib \
base-devel \
networkmanager \
networkmanager-openvpn \
openvpn \
make \
python \
python-pip \
bash \
vim \
nano \
namcap \
dbus \
libnm \
gtk3 \
gnome-keyring \
libsecret \
python-gobject \
python-pyxdg \
python-keyring \
python-distro \
python-jinja \
python-gobject \
python-pytest \
python-pytest-cov \
python-requests \
python-pyopenssl \
python-bcrypt \
python-gnupg \
&& python3 -m pip install --upgrade sentry-sdk==0.10.2 \
&& useradd -ms /bin/bash user \
&& usermod -a -G wheel user \
&& usermod -a -G network user \
&& echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
&& git clone --single-branch --branch $git_branch $git_repo_client \
&& cd proton-python-client && pip3 install -e . \
&& rm -rf .git \
&& cd .. \
&& git clone --single-branch --branch $git_branch $git_repo_lib \
&& cd protonvpn-nm-lib && pip3 install -e . \
&& rm -rf .git && cd ..
COPY docker_entry_arch.sh /usr/local/bin
COPY . /home/user/$pkgname
RUN chown -R user:user /home/user/
WORKDIR /home/user/$pkgname
USER user
ENTRYPOINT ["/usr/local/bin/docker_entry_arch.sh"]