Files
intervalsicu-mcp/Dockerfile
T
Chris Farhood 8f3abbde8f
build-image / test (push) Successful in 1m34s
build-image / build (push) Successful in 26s
build: include alembic in image for migration initContainer
2026-07-04 19:47:54 -04:00

23 lines
829 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Copy project files
COPY pyproject.toml pyproject.toml
COPY src src
COPY README.md README.md
COPY .env.example .env.example
# Alembic migrations (run via `alembic upgrade head` in a deploy initContainer)
COPY alembic.ini alembic.ini
COPY alembic alembic
# Install the package and runtime dependencies. All dependencies ship as
# manylinux wheels (pydantic-core, cryptography, etc.), so no build toolchain
# is required — keeping the image small and the build fast.
RUN pip install --no-cache-dir .
# Run the MCP server. Transport is selected via MCP_TRANSPORT (default stdio);
# the deployment sets MCP_TRANSPORT=http for streamable-HTTP. Auth + stateless
# JSON transport are configured in code (see mcp_instance.py), no monkeypatch.
CMD ["python", "-m", "intervals_mcp_server.server"]