Skip to content

Commit

Permalink
fix: install the correct version of Python (oracle#2232)
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Miller <[email protected]>
  • Loading branch information
Djelibeybi authored Jan 20, 2022
1 parent 38fd545 commit d3587fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions OracleLinuxDevelopers/oraclelinux8/python/3.8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim

RUN dnf -y module enable python38 && \
dnf -y install python36 python3-pip python3-setuptools && \
RUN dnf -y module disable python36 && \
dnf -y module enable python38 && \
dnf -y install python38 python38-pip python38-setuptools python38-wheel && \
rm -rf /var/cache/dnf

CMD ["/bin/python3", "-V"]
5 changes: 3 additions & 2 deletions OracleLinuxDevelopers/oraclelinux8/python/3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
# so that any automation that relied on microdnf continues to work
FROM ghcr.io/oracle/oraclelinux8-compat:8-slim

RUN dnf -y module enable python39 && \
dnf -y install python36 python3-pip python3-setuptools && \
RUN dnf -y module disable python36 && \
dnf -y module enable python39 && \
dnf -y install python39 python39-pip python39-setuptools python39-wheel && \
rm -rf /var/cache/dnf

CMD ["/bin/python3", "-V"]

0 comments on commit d3587fd

Please sign in to comment.