Add Dockerfile to pre-bake Python ML dependencies into backend image

Extends odoo:19.0 with all requirements from new_project/requirements.txt
(openai, torch, sentence-transformers, faiss-cpu, etc.) so they are
baked into the image at build time — no more manual pip installs needed.

Updates docker-compose.yml to use build: . and image: encoach-backend:latest.

Made-with: Cursor
This commit is contained in:
2026-04-01 19:24:51 +04:00
parent 9b6a2b7c22
commit c1b23c8a5c
2 changed files with 20 additions and 6 deletions

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM odoo:19.0
USER root
# Install all Python dependencies required by EnCoach custom addons
COPY new_project/requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt --break-system-packages --no-warn-script-location
USER odoo