Files

20 lines
559 B
Docker
Raw Permalink Normal View History

FROM python:3.12-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential libolm-dev libolm3 curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml ./
COPY server ./server
RUN pip install --no-cache-dir .
ENV MCP_HTTP_PORT=8765
# Any HTTP response (even 4xx/406) means the server is up; curl exits 0 on connect.
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD curl -s -o /dev/null "http://localhost:${MCP_HTTP_PORT:-8765}/mcp" || exit 1
CMD ["vortex-mcp"]