Fix pip install: add --ignore-installed to skip Debian-managed packages
Made-with: Cursor
This commit is contained in:
@@ -2,8 +2,9 @@ FROM odoo:19.0
|
|||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
# Install all Python dependencies required by EnCoach custom addons
|
# Install all Python dependencies required by EnCoach custom addons.
|
||||||
|
# --ignore-installed: skip uninstalling system packages that lack RECORD files (e.g. Debian's typing_extensions).
|
||||||
COPY new_project/requirements.txt /tmp/requirements.txt
|
COPY new_project/requirements.txt /tmp/requirements.txt
|
||||||
RUN pip install -r /tmp/requirements.txt --break-system-packages --no-warn-script-location
|
RUN pip install -r /tmp/requirements.txt --break-system-packages --no-warn-script-location --ignore-installed
|
||||||
|
|
||||||
USER odoo
|
USER odoo
|
||||||
|
|||||||
Reference in New Issue
Block a user