FROM python:3.13-slim

RUN apt-get update && \
    apt-get install -y build-essential

RUN gcc --version
RUN rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Finally, run gunicorn.
CMD [ "python", "-u" ,"algo_orchestrator.py"]
# CMD [ "gunicorn", "--workers=5", "--threads=1", "-b 0.0.0.0:8000", "app:server"]