-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (25 loc) · 887 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (25 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# syntax=docker/dockerfile:1
# Container image for the WhiteCapData-Dev (k3s / Kubernetes) MCP server.
#
# The server speaks MCP (JSON-RPC) over stdio and talks to your cluster through a
# mounted kubeconfig. Run interactively (-i), mounting your kubeconfig read-only:
#
# docker build -t whitecapdata-dev .
# docker run --rm -i \
# -v "$HOME/.kube/config:/home/app/.kube/config:ro" \
# -e HOMELAB_MCP_READONLY=1 \
# whitecapdata-dev
#
# Set HOMELAB_MCP_READONLY=1 to disable all mutating tools (recommended for a
# first run). See the README for the full environment-variable reference.
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
KUBECONFIG=/home/app/.kube/config
WORKDIR /app
COPY . /app
RUN pip install . \
&& useradd --create-home --uid 10001 app
USER app
ENTRYPOINT ["whitecapdata-dev"]