From 258794a57ef99b888c837cbd97070fd0073191ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20San=20Jos=C3=A9?= Date: Mon, 17 Mar 2025 12:37:47 +0100 Subject: [PATCH] Add python and npm to Dockerfile.codespaces --- .devcontainer/Dockerfile.codespaces | 5 +++++ .devcontainer/devcontainer.json | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/Dockerfile.codespaces diff --git a/.devcontainer/Dockerfile.codespaces b/.devcontainer/Dockerfile.codespaces new file mode 100644 index 00000000000..0dbac705009 --- /dev/null +++ b/.devcontainer/Dockerfile.codespaces @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 + +USER root +RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y sudo man-db python3.12 npm unminimize +RUN yes | unminimize diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a51284e3a1f..61595e152b7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,4 @@ { - "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04", "extensions": [ "rust-lang.rust-analyzer", "bungcip.better-toml", @@ -8,6 +7,10 @@ "ms-vscode.test-adapter-converter", "slevesque.vscode-zipexplorer" ], + "build": { + // Path is relative to the devcontainer.json file. + "dockerfile": "Dockerfile.codespaces" + }, "settings": { "files.watcherExclude": { "**/target/**": true