Improve AI logic

This commit is contained in:
Urtzi Alfaro
2025-11-05 13:34:56 +01:00
parent 5c87fbcf48
commit 394ad3aea4
218 changed files with 30627 additions and 7658 deletions

View File

@@ -9,10 +9,13 @@ FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
# Install system dependencies including cmdstan requirements
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
@@ -36,6 +39,13 @@ COPY services/training/ .
# Add shared libraries to Python path
ENV PYTHONPATH="/app:/app/shared:${PYTHONPATH:-}"
# Set TMPDIR for cmdstan (directory will be created at runtime)
ENV TMPDIR=/tmp/cmdstan
# Install cmdstan for Prophet (required for model optimization)
# Suppress verbose output to reduce log noise
RUN python -m pip install --no-cache-dir cmdstanpy && \
python -m cmdstanpy.install_cmdstan
# Expose port
EXPOSE 8000