Compare commits

..

2 Commits

Author SHA1 Message Date
6fa6bb53ad Merge pull request 'fix: use system Python to fix venv symlink issue' (#4) from fix/netbox-mcp-python-venv into main
All checks were successful
Build and Push Docker Images / build (push) Successful in 21s
Reviewed-on: #4
2026-01-11 10:30:01 +00:00
a0078d331e 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
2026-01-11 10:25:32 +00:00

View File

@@ -11,7 +11,7 @@ ARG NETBOX_MCP_VERSION=1.0.0
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 1: Builder # Stage 1: Builder
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM python:3.14-alpine3.23 AS builder FROM python:3.13-alpine3.21 AS builder
ARG NETBOX_MCP_VERSION ARG NETBOX_MCP_VERSION
@@ -20,6 +20,7 @@ RUN apk add --no-cache git \
&& pip install --root-user-action=ignore --no-cache-dir uv && pip install --root-user-action=ignore --no-cache-dir uv
ENV UV_LINK_MODE=copy ENV UV_LINK_MODE=copy
ENV UV_PYTHON_PREFERENCE=only-system
WORKDIR /app WORKDIR /app
@@ -34,7 +35,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Stage 2: Runtime # Stage 2: Runtime
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
FROM python:3.14-alpine3.23 FROM python:3.13-alpine3.21
LABEL maintainer="Damien Arnodo" LABEL maintainer="Damien Arnodo"
LABEL org.opencontainers.image.title="NetBox MCP Server" LABEL org.opencontainers.image.title="NetBox MCP Server"