From e1029bbf279a1d8ff4c17f23244a54566fd2e472 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Thu, 23 Apr 2026 20:21:40 +0200 Subject: [PATCH] Add python3-pip to base image for Mason LSP installs Mason (neovim's package manager) creates a Python venv and runs 'pip install' inside it to install Python-based LSP servers like ruff and ansible-lint. Debian trixie's python3 package ships without ensurepip, so the venv has no pip and Mason fails with 'spawn: python3 failed with exit code 1'. Adding python3-pip to the apt install list gives Mason what it needs. uv is still available as the preferred user-facing Python tool manager; pip is here specifically for Mason's internal use. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 03fbd57..ac32036 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ g++ \ rsync \ + python3-pip \ && ln -s /usr/bin/fdfind /usr/local/bin/fd \ && rm -rf /var/lib/apt/lists/*