Первое использование нового образа oracle
parent
36a6469e69
commit
b7f46dc99f
34
Dockerfile
34
Dockerfile
|
|
@ -1,23 +1,6 @@
|
||||||
FROM python:3.11-slim-bookworm
|
FROM proxy.docker.dataekb.ru/local_cache/oracleclient_docker:stable
|
||||||
ENV PYTHONUNBUFFERED=1
|
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
|
EXPOSE 8000
|
||||||
|
|
||||||
WORKDIR /code/app
|
WORKDIR /code/app
|
||||||
|
|
@ -25,17 +8,4 @@ COPY ./requirements.txt /code/requirements.txt
|
||||||
COPY ./app /code/app
|
COPY ./app /code/app
|
||||||
|
|
||||||
RUN python3.11 -m pip install --upgrade pip
|
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 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"]
|
|
||||||
Loading…
Reference in New Issue