[IMP] use Python 3.11 in version 16.0 to comply with OCA repos
This commit is contained in:
parent
1b8532b7bc
commit
5d824105b9
|
|
@ -1,5 +1,6 @@
|
||||||
# <OOW> : Copy of https://github.com/odoo/odoo/blob/16.0/setup/package.dfsrc
|
# <OOW> : Copy of https://github.com/odoo/odoo/blob/16.0/setup/package.dfsrc
|
||||||
FROM debian:buster
|
# adapted to use Debian Bookworm (Python 3.11)
|
||||||
|
FROM debian:bookworm
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y locales && \
|
apt-get install -y locales && \
|
||||||
|
|
@ -21,6 +22,7 @@ RUN apt-get update -qq && \
|
||||||
libldap2-dev \
|
libldap2-dev \
|
||||||
libsasl2-dev \
|
libsasl2-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
|
python3-venv \
|
||||||
python3-wheel \
|
python3-wheel \
|
||||||
build-essential \
|
build-essential \
|
||||||
python3 -y && \
|
python3 -y && \
|
||||||
|
|
@ -39,11 +41,11 @@ RUN apt-get update -qq \
|
||||||
COPY ./src/odoo/requirements.txt /odoo_python_requirements.txt
|
COPY ./src/odoo/requirements.txt /odoo_python_requirements.txt
|
||||||
COPY addons_python_requirements.txt /addons_python_requirements.txt
|
COPY addons_python_requirements.txt /addons_python_requirements.txt
|
||||||
COPY extra_python_requirements.txt /extra_python_requirements.txt
|
COPY extra_python_requirements.txt /extra_python_requirements.txt
|
||||||
RUN pip3 install --upgrade pip \
|
RUN pip3 install --upgrade pip --break-system-packages \
|
||||||
&& python3 -m pip install --no-cache-dir setuptools-scm \
|
&& python3 -m pip install --no-cache-dir setuptools-scm --break-system-packages \
|
||||||
&& python3 -m pip install --no-cache-dir -r /odoo_python_requirements.txt \
|
&& python3 -m pip install --no-cache-dir -r /odoo_python_requirements.txt --break-system-packages \
|
||||||
&& python3 -m pip install --no-cache-dir -r /extra_python_requirements.txt \
|
&& python3 -m pip install --no-cache-dir -r /extra_python_requirements.txt --break-system-packages \
|
||||||
&& python3 -m pip install --no-cache-dir -r /addons_python_requirements.txt
|
&& python3 -m pip install --no-cache-dir -r /addons_python_requirements.txt --break-system-packages
|
||||||
|
|
||||||
# <OOW> Get local user id and set it to the odoo user
|
# <OOW> Get local user id and set it to the odoo user
|
||||||
ARG LOCAL_USER_ID
|
ARG LOCAL_USER_ID
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user