FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim WORKDIR /app # Install build dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python packages with uv RUN uv pip install --system --no-cache \ prophet==1.2.1 \ cmdstanpy==1.3.0 \ pandas==2.1.4 \ requests==2.31.0 \ pytz==2024.1 # Install cmdstan (required by Prophet) RUN python -c "import cmdstanpy; cmdstanpy.install_cmdstan()" COPY anomaly_detector.py /app/ ENV PYTHONUNBUFFERED=1 CMD ["python", "/app/anomaly_detector.py"]