forked from ProtonMail/proton-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.fed34
46 lines (38 loc) · 858 Bytes
/
Dockerfile.fed34
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
FROM IMAGE_URL_FED34
RUN dnf update -y
# RUN yum -y install epel-release && yum repolist
RUN dnf install -y \
gcc \
sudo \
rpm-build \
rpm-devel \
rpmlint \
make \
python3 \
python3-pip \
bash \
coreutils \
diffutils \
patch \
rpmdevtools \
rpm-sign \
vim \
openssl-devel \
openssl-libs
RUN dnf install -y \
python3-requests \
python3-pyOpenSSL \
python3-bcrypt \
python3-gnupg
RUN dnf install -y \
python3-pytest \
python3-pytest-cov
RUN useradd -ms /bin/bash user
RUN usermod -a -G wheel user
RUN echo '%wheel 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/
USER user
WORKDIR /home/user/proton-python-client
ENTRYPOINT ["/usr/local/bin/docker_entry.sh"]