From b7f46dc99fc3112280bc03976ccbbec02e43ac6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=B2?= Date: Thu, 6 Nov 2025 12:08:37 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=BE=D0=B5=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B3=D0=BE=20=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=B7=D0=B0=20oracle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Dockerfile b/Dockerfile index ba66e64..912e4df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,6 @@ -FROM python:3.11-slim-bookworm +FROM proxy.docker.dataekb.ru/local_cache/oracleclient_docker:stable ENV PYTHONUNBUFFERED=1 -RUN apt-get update -RUN apt-get -y install wget libaio1 unzip alien - -RUN cd /home && wget -q https://download.oracle.com/otn_software/linux/instantclient/2112000/oracle-instantclient-basic-21.12.0.0.0-1.el8.x86_64.rpm &&\ - alien -i --scripts /home/oracle-instantclient-basic-21.12.0.0.0-1.el8.x86_64.rpm &&\ - rm /home/oracle-instantclient-basic-21.12.0.0.0-1.el8.x86_64.rpm &&\ - export LD_LIBRARY_PATH=/usr/lib/oracle/21.12/client64/lib/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} - -RUN cd /home/ && wget -q https://download.oracle.com/otn_software/linux/instantclient/2112000/oracle-instantclient-sqlplus-21.12.0.0.0-1.el8.x86_64.rpm &&\ - alien -i --scripts /home/oracle-instantclient-sqlplus-21.12.0.0.0-1.el8.x86_64.rpm &&\ - rm /home/oracle-instantclient-sqlplus-21.12.0.0.0-1.el8.x86_64.rpm - -RUN cd /home/ && wget -q https://download.oracle.com/otn_software/linux/instantclient/2112000/oracle-instantclient-devel-21.12.0.0.0-1.el8.x86_64.rpm && \ - alien -i --scripts /home/oracle-instantclient-devel-21.12.0.0.0-1.el8.x86_64.rpm &&\ - rm /home/oracle-instantclient-devel-21.12.0.0.0-1.el8.x86_64.rpm &&\ - ldconfig - EXPOSE 8000 WORKDIR /code/app @@ -25,17 +8,4 @@ COPY ./requirements.txt /code/requirements.txt COPY ./app /code/app RUN python3.11 -m pip install --upgrade pip -RUN python3.11 -m pip cache purge -RUN echo Y | python3.11 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt - -RUN echo "=== Contents of requirements.txt ===" -RUN cat /code/requirements.txt -RUN echo "=== Python version ===" -RUN python3.11 --version -RUN echo "=== Installing dependencies ===" -RUN python3.11 -m pip install --upgrade pip -RUN echo Y | python3.11 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt -RUN echo "=== Installed packages ===" -RUN python3.11 -m pip list | grep hvac - -CMD ["python", "main.py"] \ No newline at end of file +RUN echo Y | python3.11 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt \ No newline at end of file