forked from aahl/mcp-aktools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 677 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
LABEL io.modelcontextprotocol.server.name="io.github.tchivs/aktools-pro"
ARG SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0
ENV PYTHONUNBUFFERED=1 \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
PATH="/app/.venv/bin:$PATH" \
TRANSPORT=http \
PORT=80 \
SETUPTOOLS_SCM_PRETEND_VERSION=${SETUPTOOLS_SCM_PRETEND_VERSION}
WORKDIR /app
COPY . .
RUN apt update && apt install -y --no-install-recommends netcat-openbsd
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked --no-dev
CMD ["uv", "run", "-m", "mcp_aktools"]
HEALTHCHECK --interval=1m --start-period=30s CMD nc -zn 0.0.0.0 $PORT || exit 1