mirror of
https://github.com/prdlk/vortex.git
synced 2026-08-02 17:31:41 +00:00
20 lines
559 B
Docker
20 lines
559 B
Docker
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"]
|