feat: add ML service scaffolding with Python FastAPI, Docker, and MLflow setup

This commit is contained in:
Marko Djordjevic 2026-02-15 11:58:31 +01:00
parent 92abab5316
commit 1a653c5866
18 changed files with 1952 additions and 2593 deletions

28
services/ml/Dockerfile Normal file
View file

@ -0,0 +1,28 @@
FROM python:3.11-slim
# Install system dependencies including TA-Lib C library
RUN apt-get update && apt-get install -y \
build-essential \
wget \
libta-lib-dev \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy dependency files
COPY pyproject.toml ./
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir .
# Copy application code
COPY . .
# Expose port for FastAPI
EXPOSE 8001
# Run the inference server by default
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8001"]