From a0078d331e0cdae56967e5b877268622804563d9 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sun, 11 Jan 2026 10:25:32 +0000 Subject: [PATCH] fix: use system Python to fix venv symlink issue - Add UV_PYTHON_PREFERENCE=only-system to prevent uv from downloading its own Python - Use python:3.13-alpine3.21 (stable) instead of 3.14 (RC) Fixes: exec /app/.venv/bin/netbox-mcp-server: no such file or directory --- images/netbox-mcp-server/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/netbox-mcp-server/Dockerfile b/images/netbox-mcp-server/Dockerfile index c9f07b6..74b7e83 100644 --- a/images/netbox-mcp-server/Dockerfile +++ b/images/netbox-mcp-server/Dockerfile @@ -11,7 +11,7 @@ ARG NETBOX_MCP_VERSION=1.0.0 # ----------------------------------------------------------------------------- # Stage 1: Builder # ----------------------------------------------------------------------------- -FROM python:3.14-alpine3.23 AS builder +FROM python:3.13-alpine3.21 AS builder ARG NETBOX_MCP_VERSION @@ -20,6 +20,7 @@ RUN apk add --no-cache git \ && pip install --root-user-action=ignore --no-cache-dir uv ENV UV_LINK_MODE=copy +ENV UV_PYTHON_PREFERENCE=only-system WORKDIR /app @@ -34,7 +35,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ # ----------------------------------------------------------------------------- # Stage 2: Runtime # ----------------------------------------------------------------------------- -FROM python:3.14-alpine3.23 +FROM python:3.13-alpine3.21 LABEL maintainer="Damien Arnodo" LABEL org.opencontainers.image.title="NetBox MCP Server"