Skip to content

Commit 476bef6

Browse files
Fixes
1 parent 86fea83 commit 476bef6

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
# syntax=docker/dockerfile:1.4
44

5-
# Use single-stage build with Python 3.12
6-
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bookworm
5+
# Use single-stage build with Python 3.12 (fallback to stable base)
6+
FROM mcr.microsoft.com/devcontainers/python:0-3.12-bookworm
77

88
# Set build arguments
99
ARG PYTHON_VERSION=3.12
@@ -22,10 +22,16 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
2222
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
2323
apt-get update && \
2424
# Remove Python 3.11 and other versions if they exist
25-
apt-get remove -y python3.11* python3-minimal python3.11-minimal || true && \
26-
apt-get autoremove -y && \
27-
# Install essential packages (optimized for size and speed)
28-
apt-get install -y --no-install-recommends curl wget jq tree git-lfs && \
25+
apt-get remove -y python3.11* python3-minimal python3.11-minimal || true && \ apt-get autoremove -y && \
26+
# Install essential packages including core utilities
27+
apt-get install -y --no-install-recommends \
28+
coreutils \
29+
util-linux \
30+
curl \
31+
wget \
32+
jq \
33+
tree \
34+
git-lfs && \
2935
apt-get clean && \
3036
# Create symbolic links to ensure python3 points to Python 3.12
3137
ln -sf /usr/local/bin/python3.12 /usr/bin/python3 && \

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"version": "latest",
2222
"ppa": true
2323
},
24-
"ghcr.io/devcontainers/features/docker-in-docker:2": {
24+
"_ghcr.io/devcontainers/features/docker-in-docker:2": {
2525
"version": "latest",
2626
"enableNonRootDocker": "true"
2727
}

0 commit comments

Comments
 (0)