# Minimal container for the MCP HTTP server.
# NOTE: You still need to install language servers (pyright/basedpyright, rust-analyzer, clangd, etc.)
# in this image OR mount them in.
FROM python:3.11-slim
WORKDIR /app
# Install bridge
COPY pyproject.toml README.md /app/
COPY src /app/src
RUN pip install --no-cache-dir -e .
# Expose MCP endpoint
EXPOSE 8000
ENV CODEX_LSP_BRIDGE_HOST=0.0.0.0
ENV CODEX_LSP_BRIDGE_PORT=8000
CMD ["codex-lsp-bridge", "serve", "--host", "0.0.0.0", "--port", "8000"]