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
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user