Skip to content

Commit

Permalink
Add Python 3.9 image with python-oracledb
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Jones <[email protected]>
  • Loading branch information
cjbj authored and Djelibeybi committed Aug 1, 2024
1 parent e1ed15e commit e57426d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions OracleLinuxDevelopers/oraclelinux8/python/3.9-oracledb/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) 2024 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

FROM ghcr.io/oracle/oraclelinux:8

RUN dnf -y module disable python36 && \
dnf -y module enable python39 && \
dnf -y install python39 python39-pip python39-setuptools python39-wheel && \
dnf -y install oraclelinux-developer-release-el8 && \
dnf -y install python39-oracledb && \
# Optionally install Oracle Instant Client to use python-oracledb Thick mode
# dnf -y install oracle-instantclient-release-23ai-el8 && \
# dnf -y install oracle-instantclient-basic && \
rm -rf /var/cache/dnf

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

0 comments on commit e57426d

Please sign in to comment.