Fix pip install: add --ignore-installed to skip Debian-managed packages

Made-with: Cursor
This commit is contained in:
2026-04-01 19:31:19 +04:00
parent c1b23c8a5c
commit 66ce923907

View File

@@ -2,8 +2,9 @@ FROM odoo:19.0
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
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