Improve AI logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user