FROM python:3.12-slim

WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
    && pip install --no-cache-dir -r /app/requirements.txt

COPY crypto_spot_bot /app/crypto_spot_bot
COPY README.md /app/README.md
RUN mkdir -p /app/runtime

EXPOSE 8787
CMD ["python", "-m", "crypto_spot_bot.main"]
