[FIX] packaging: build and test tgz from latest debian
The source packaging was a bit left behind, it was still using Debian buster to build and test. With this commit the Debian bookworm is used. As the installation of pip packages as root is now forbidden, the build and tests are now using a python virtual environment aka venv. closes odoo/odoo#139482 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
+2
-5
@@ -1,6 +1,6 @@
|
||||
# Please note that this Dockerfile is used for testing nightly builds and should
|
||||
# not be used to deploy Odoo
|
||||
FROM debian:buster
|
||||
FROM debian:bookworm
|
||||
MAINTAINER Odoo S.A. <info@odoo.com>
|
||||
|
||||
RUN apt-get update && \
|
||||
@@ -23,15 +23,12 @@ RUN apt-get update -qq && \
|
||||
libldap2-dev \
|
||||
libsasl2-dev \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
python3-wheel \
|
||||
build-essential \
|
||||
python3 -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip3 install --upgrade pip
|
||||
|
||||
COPY requirements.txt /opt/release/requirements.txt
|
||||
|
||||
RUN pip3 install -r /opt/release/requirements.txt
|
||||
|
||||
RUN echo "PS1=\"[\u@nightly-tests] # \"" > ~/.bashrc
|
||||
|
||||
Reference in New Issue
Block a user