Skip to content

Commit d41ed06

Browse files
idvoretskyiCopilot
andauthored
Use precompiled Python via apt (faster spin-up) (#11)
* 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 <[email protected]> * 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 <[email protected]> * Update .devcontainer/Dockerfile Co-authored-by: Copilot <[email protected]> Signed-off-by: Ihor Dvoretskyi <[email protected]> --------- Signed-off-by: Ihor Dvoretskyi <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 59f96b5 commit d41ed06

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
88
wget \
99
jq \
1010
build-essential \
11+
python3 \
12+
python3-venv \
13+
python3-pip \
1114
&& apt-get clean -y \
1215
&& rm -rf /var/lib/apt/lists/*
1316

.devcontainer/devcontainer.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
"version": "os-provided",
1616
"ppa": false
1717
},
18-
"ghcr.io/devcontainers/features/python:1": {
19-
"version": "3.12",
20-
"installTools": true
21-
},
2218
"ghcr.io/devcontainers/features/node:1": {
2319
"version": "lts",
2420
"nodeGypDependencies": false,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The devcontainer balances speed with operability:
3232
- Disabled package upgrades during build
3333
- Removed heavy features (kubectl, helm, minikube, sshd)
3434
- Uses OS-provided Git for faster builds
35+
- Uses OS-provided Python (precompiled) for faster setup
3536
- Installs Claude Code CLI via npm in postCreateCommand
3637
- Core VS Code extensions only
3738

0 commit comments

Comments
 (0)