Created
April 7, 2025 12:39
-
-
Save Bruno-Messias/5c5db926998a998fc20f204adefbd26f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM python:3.12 | |
# Instalar dependências necessárias para o Oracle Instant Client | |
RUN apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y \ | |
chromium-driver \ | |
libaio1 \ | |
wget \ | |
unzip | |
# Baixar e instalar Oracle Instant Client | |
RUN wget -q https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip \ | |
&& unzip instantclient-basiclite-linuxx64.zip \ | |
&& mkdir -p /opt/oracle \ | |
&& mv instantclient*/ /opt/oracle/instantclient_21_1 \ | |
&& rm instantclient-basiclite-linuxx64.zip | |
# Define variáveis de ambiente para o Chromium e Oracle Instant Client | |
ENV PATH="/usr/local/bin:/opt/oracle/instantclient_21_1:$PATH" | |
ENV LD_LIBRARY_PATH="/opt/oracle/instantclient_21_1:$LD_LIBRARY_PATH" | |
EXPOSE 1521 | |
# Instala o pip e o poetry | |
RUN pip install --upgrade pip | |
RUN pip install --no-cache-dir poetry cx_Oracle | |
# Limpa pacotes temporários para reduzir o tamanho da imagem | |
RUN apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment