forked from ProtonMail/proton-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.arch
More file actions
33 lines (30 loc) · 709 Bytes
/
Copy pathDockerfile.arch
File metadata and controls
33 lines (30 loc) · 709 Bytes
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
FROM IMAGE_URL_ARCH
ARG pkgname
ENV pkgname=${pkgname:-python-proton-client}
RUN pacman -Syu --noconfirm \
pacman-contrib \
base-devel \
bash \
sudo \
make \
python \
python-pip \
bash \
vim \
nano \
namcap \
python-requests \
python-pyopenssl \
python-bcrypt \
python-gnupg \
python-pytest \
python-dnspython \
python-pytest-cov \
&& useradd -ms /bin/bash user \
&& usermod -a -G wheel user \
&& echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
COPY docker_entry.sh /usr/local/bin
COPY . /home/user/$pkgname
RUN chown -R user:user /home/user/
WORKDIR /home/user/$pkgname
ENTRYPOINT ["/usr/local/bin/docker_entry.sh"]