Windows Container to Run python applications with Oracle Instant client
This image is extended from Windows Server Core Python image (python:windowsservercore
)
We have installed Chocolaty which is used install Microsoft Visual C++ Redistributable (used by oracle client).
Currently Instant Client for Microsoft Windows (x64) 64-bit Version 19.9.0.0.0 Basic Package is installed and configured.
Build is tested with Windows Server 2019. You can use the Docker file to extend it for other versions of windows too
- cx_Oracle
- SQLAlchemy
You may install additional libraries. (Refer to example)
FROM kshfse/windows-python-oracle-instant-client
WORKDIR C:\\app
COPY ./src/ .
RUN pip install --no-cache-dir -r requirements.txt
CMD [ "python", "./app.py" ]
Reference: