FROM python:3.12-slim
RUN useradd --create-home --uid 10001 quant
RUN mkdir -p /home/quant/.local/share/foresixa-quant && chown -R quant:quant /home/quant/.local
WORKDIR /app
COPY runtime /app/runtime
COPY cognitive_bot.md /app/cognitive_bot.md
USER quant
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
CMD ["python3", "runtime/worker.py"]
