-
Notifications
You must be signed in to change notification settings - Fork 40
/
Dockerfile.build.template
40 lines (36 loc) · 1.27 KB
/
Dockerfile.build.template
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
{% extends "Dockerfile.common.build.template" %}
{% block install %}
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* &&\
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* &&\
sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
RUN dnf update -y \
&& dnf install -y \
binutils \
epel-release \
expect \
openssl \
protobuf-c-devel \
python3 \
python3-cryptography \
python3-pip \
python3-protobuf \
&& /usr/bin/python3 -B -m pip install click jinja2 protobuf \
'tomli>=1.1.0' 'tomli-w>=0.4.0' \
&& dnf repolist \
# For compatibility with Gramine v1.3 or lower
&& /usr/bin/python3 -B -m pip install 'toml>=0.10' \
&& dnf install -y python3-pyelftools \
&& rpm -e --nodeps python3-pip && dnf -y clean all \
&& rm -rf /var/cache/dnf/* \
&& rm -rf /var/lib/dnf/system-upgrade/*
# Install pyelftools after the installation of epel-release as it is provided by the EPEL repo
{% if debug %}
RUN dnf install -y \
gdb \
less \
libunwind \
python3-pytest \
strace \
vim
{% endif %}
{% endblock %}