-
Notifications
You must be signed in to change notification settings - Fork 61
/
Dockerfile.deb
47 lines (38 loc) · 990 Bytes
/
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
FROM IMAGE_URL_DEB
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
# Install a few useful packages
RUN apt-get install -y \
net-tools \
apt-utils \
iproute2 \
python3 \
network-manager \
network-manager-openvpn \
sudo \
vim \
pkg-config \
iputils-ping \
openvpn \
libssl-dev
RUN apt-get install -y \
dbus-x11 \
libsecret-tools \
gnome-keyring
RUN apt-get install -y \
python3-bcrypt \
python3-gnupg \
python3-openssl \
python3-dnspython \
python3-requests >= 2.16.0
RUN apt-get install -y \
python3-pytest \
python3-pytest-cov
RUN useradd -ms /bin/bash user
RUN usermod -a -G sudo user
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
COPY docker_entry.sh /usr/local/bin
COPY . /home/user/proton-python-client
RUN chown -R user:user /home/user/proton-python-client
WORKDIR /home/user/proton-python-client
ENTRYPOINT ["/usr/local/bin/docker_entry.sh"]