forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python 3.9 image with python-oracledb
Signed-off-by: Christopher Jones <[email protected]>
- Loading branch information
1 parent
e1ed15e
commit e57426d
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
OracleLinuxDevelopers/oraclelinux8/python/3.9-oracledb/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |