# Companion image for the remote-bridge HTTP/WS proxy (PRD §14.4).
# Note: the MT5 terminal itself runs on a Windows host/VM next to
# `meta-trader-mcp bridge`; this image runs the macOS/Linux-side MCP server
# in remote-bridge mode (or any HTTP-transport deployment).
FROM python:3.12-slim

WORKDIR /app
COPY pyproject.toml README.md LICENSE NOTICE ./
COPY src ./src

RUN pip install --no-cache-dir ".[remote]"

ENV MTM_MODE=remote-bridge \
    MTM_TRANSPORT=http \
    MTM_HTTP_HOST=0.0.0.0 \
    MTM_HTTP_PORT=8000

EXPOSE 8000
ENTRYPOINT ["meta-trader-mcp"]
CMD ["serve", "--transport", "http"]
