Skip to content

Commit

Permalink
tools/docker: Bump centos-7 to rh-python38
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 25, 2023
1 parent c71a379 commit f046fb0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/docker/images/centos-7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ ENV JAVA_HOME=/usr/lib/jvm/java

# Install Python
RUN yum -y update \
&& yum -y install python3 python3-devel python3-pip numpy \
&& yum -y install \
rh-python38-python rh-python38-python-devel \
rh-python38-python-pip rh-python38-python-numpy \
&& yum clean all \
&& rm -rf /var/cache/yum
&& rm -rf /var/cache/yum \
&& echo "source /opt/rh/rh-python38/enable" >> /etc/bashrc
RUN python -m pip install absl-py mypy-protobuf

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand Down

0 comments on commit f046fb0

Please sign in to comment.