forked from awsassets/linux-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.deb
68 lines (60 loc) · 1.66 KB
/
Dockerfile.deb
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
65
66
67
68
FROM IMAGE_URL_DEB
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}
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get -y install \
tzdata \
net-tools \
apt-utils \
iproute2
ARG pkgname
ENV pkgname=${pkgname:-linux-cli}
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install \
git \
python3 \
python3-pip \
network-manager \
network-manager-openvpn \
sudo \
vim \
pkg-config \
iputils-ping \
openvpn \
libsecret-tools \
dbus-x11 \
gnome-keyring \
libgirepository1.0-dev \
gir1.2-nm-1.0 \
libcairo2-dev \
python3-xdg \
python3-keyring \
python3-distro \
python3-jinja2 \
python3-pytest \
python3-pytest-cov \
python3-bcrypt \
python3-gnupg \
python3-systemd \
python3-openssl \
python3-requests >= 2.16.0 \
&& python3 -m pip install --upgrade sentry-sdk==0.10.2 \
&& useradd -ms /bin/bash user \
&& usermod -a -G sudo user \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN 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_deb.sh /usr/local/bin
COPY . /home/user/$pkgname
RUN chown -R user:user /home/user/$pkgname
WORKDIR /home/user/$pkgname
USER user
ENTRYPOINT ["/usr/local/bin/docker_entry_deb.sh"]