Skip to content

Commit 9f46523

Browse files
build and install python 3.8, install git client
1 parent 7541f5a commit 9f46523

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

docker/Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ LABEL description="Tools to generate HTML and PDF using Materials for MkDocs and
55
LABEL build.command="docker build . --tag trivadis/mktools:latest"
66

77
# install python, not part of centos
8-
# see https://www.osetc.com/en/how-to-install-the-latest-python-3-3-6-x-3-7-x-on-centos-7-or-rhel-7.html
9-
RUN yum install -y https://centos7.iuscommunity.org/ius-release.rpm
10-
RUN yum update -y
11-
RUN yum install -y python36u python36u-libs python36u-devel python36u-pip
12-
13-
# install git and wget
8+
# see https://computingforgeeks.com/how-to-install-python-on-3-on-centos/
9+
RUN yum -y update
10+
RUN yum -y groupinstall "Development Tools"
11+
RUN yum -y install openssl-devel bzip2-devel libffi-devel
12+
RUN yum -y install wget
13+
RUN wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz
14+
RUN tar xvf Python-3.8.3.tgz
15+
RUN /bin/bash -c 'cd Python-3.8*/; ./configure --enable-optimizations; make altinstall'
16+
17+
# install git
1418
RUN yum install -y git
15-
RUN yum install -y wget
1619

1720
# install wkhtmltox 0.12.4 since 0.12.5 cannot create TOCs, see https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3995
1821
# RUN yum install -y https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm

0 commit comments

Comments
 (0)