chore: refactoring the providers docker config and requirements

This commit is contained in:
2025-11-27 23:35:38 +01:00
parent d8a3131d3c
commit f749bd749c
3 changed files with 70 additions and 14 deletions

View File

@@ -2,26 +2,19 @@ FROM python:3.11-slim
WORKDIR /app
# Install system dependencies including graphviz
RUN apt-get update && apt-get install -y \
gcc \
g++ \
graphviz \
libgraphviz-dev \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml /app/
RUN pip install --no-cache-dir \
fastapi \
uvicorn \
pydantic \
numpy \
pandas \
scikit-learn \
redis \
supabase \
kafka \
confluent-kafka
# Copy and install Python dependencies
COPY backend/provider/requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# structure will be mounted via volumes:
# Structure will be mounted via volumes:
# /app/lib -> lib/
# /app/procesing -> experiments/procesing/
# /app/provider -> backend/provider/