From 8a96e939132c2e1a425b09f61c46a3849dec0d21 Mon Sep 17 00:00:00 2001 From: Ihor Dvoretskyi Date: Mon, 3 Nov 2025 18:42:58 +0200 Subject: [PATCH 1/3] Use OS precompiled Python instead of source builds - Remove devcontainer Python feature (pyenv/source build) - Install python3, python3-venv, python3-pip via apt in Dockerfile - Remove apt-get upgrade to keep builds fast and pass hadolint - Update README to note OS-provided Python Speeds up Codespaces spin-up by avoiding compilation. Signed-off-by: Ihor Dvoretskyi --- .devcontainer/Dockerfile | 4 +++- .devcontainer/devcontainer.json | 4 ---- README.md | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 875fa37..fb89a19 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,12 +2,14 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 # hadolint ignore=DL3008 RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ - && apt-get -y upgrade --no-install-recommends \ && apt-get -y install --no-install-recommends \ curl \ wget \ jq \ build-essential \ + python3 \ + python3-venv \ + python3-pip \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b897469..9dd6f54 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,10 +15,6 @@ "version": "os-provided", "ppa": false }, - "ghcr.io/devcontainers/features/python:1": { - "version": "3.12", - "installTools": true - }, "ghcr.io/devcontainers/features/node:1": { "version": "lts", "nodeGypDependencies": false, diff --git a/README.md b/README.md index bc05ba0..02054d6 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ The devcontainer balances speed with operability: - Disabled package upgrades during build - Removed heavy features (kubectl, helm, minikube, sshd) - Uses OS-provided Git for faster builds +- Uses OS-provided Python (precompiled) for faster setup - Installs Claude Code CLI via npm in postCreateCommand - Core VS Code extensions only From 191dcf15d58663804378ffca58616d8d283a9d59 Mon Sep 17 00:00:00 2001 From: Ihor Dvoretskyi Date: Mon, 3 Nov 2025 18:45:40 +0200 Subject: [PATCH 2/3] Dockerfile: restore apt-get upgrade step Re-add apt-get -y upgrade --no-install-recommends after update per request. Also expand hadolint ignore to DL3008,DL3009 to avoid false-positive lints. Signed-off-by: Ihor Dvoretskyi --- .devcontainer/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index fb89a19..66975cf 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,7 +1,8 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 -# hadolint ignore=DL3008 +# hadolint ignore=DL3008,DL3009 RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y upgrade --no-install-recommends \ && apt-get -y install --no-install-recommends \ curl \ wget \ From d70033c010be40a44899411441eae4849a6c78ca Mon Sep 17 00:00:00 2001 From: Ihor Dvoretskyi Date: Mon, 3 Nov 2025 18:51:55 +0200 Subject: [PATCH 3/3] Update .devcontainer/Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Ihor Dvoretskyi --- .devcontainer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 66975cf..62dab21 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 -# hadolint ignore=DL3008,DL3009 +# hadolint ignore=DL3008 RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y upgrade --no-install-recommends \ && apt-get -y install --no-install-recommends \