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:
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user