puthon3.11 установил отдельно
parent
4c419172ce
commit
1a1ea86bdc
18
Dockerfile
18
Dockerfile
|
|
@ -1,4 +1,16 @@
|
|||
# Наследуем от Oracle образа и добавляем Python
|
||||
FROM proxy.docker.dataekb.ru/local_cache/oracleclient_docker:stable
|
||||
|
||||
# Устанавливаем Python 3.11
|
||||
RUN apt-get update && apt-get install -y \
|
||||
python3.11 \
|
||||
python3-pip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Создаем симлинки
|
||||
RUN ln -s /usr/bin/python3.11 /usr/bin/python3
|
||||
RUN ln -s /usr/bin/python3.11 /usr/bin/python
|
||||
# отключает буферизацию вывода Python.
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
EXPOSE 8000
|
||||
|
|
@ -7,5 +19,7 @@ WORKDIR /code/app
|
|||
COPY ./requirements.txt /code/requirements.txt
|
||||
COPY ./app /code/app
|
||||
|
||||
RUN python3 -m pip install --upgrade pip
|
||||
RUN echo Y | python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
RUN python3.11 -m pip install --upgrade pip
|
||||
RUN echo Y | python3.11 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
Loading…
Reference in New Issue