diff --git a/src/rust/.devcontainer/Dockerfile b/src/rust/.devcontainer/Dockerfile index 0230da837f..5cc946ff37 100644 --- a/src/rust/.devcontainer/Dockerfile +++ b/src/rust/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ # [Choice] Debian OS version (use bookworm, or bullseye on local arm64/Apple Silicon): bookworm, buster, bullseye ARG VARIANT="bookworm" -FROM rust:1-${VARIANT} +FROM buildpack-deps:${VARIANT} RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131 diff --git a/src/rust/.devcontainer/devcontainer.json b/src/rust/.devcontainer/devcontainer.json index b7f480dc29..937eed8a67 100644 --- a/src/rust/.devcontainer/devcontainer.json +++ b/src/rust/.devcontainer/devcontainer.json @@ -11,19 +11,22 @@ "userGid": "1000", "upgradePackages": "true" }, - "ghcr.io/devcontainers/features/rust:1": "latest", - "ghcr.io/devcontainers/features/git:1": { + "ghcr.io/devcontainers/features/rust:1": { + "version": "latest", + "profile": "default" + }, + "ghcr.io/devcontainers/features/git:1": { "version": "latest", "ppa": "false" } }, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "rustc --version", + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "rustc --version", - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "vscode" + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" }