From e2afd7f0f1fb948606a69c697748c510ba9539e1 Mon Sep 17 00:00:00 2001 From: Aaron Wislang Date: Mon, 19 Jan 2026 17:21:50 -0500 Subject: [PATCH] fix: inline install script in Dockerfile and update image reference Fixes #50 - Remove dependency on deleted scripts/ directory by inlining wasmtime, cargo-component, and wkg installation in Dockerfile - Update devcontainer.json to reference the correct published image (bytecodealliance/sample-wasi-http-rust-devcontainer) --- .devcontainer/devcontainer.json | 2 +- .devcontainer/docker/Dockerfile | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a899524..6b99a42 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/asw101/rust-wasi-hello-devcontainer:latest", + "image": "ghcr.io/bytecodealliance/sample-wasi-http-rust-devcontainer:latest", "features": { //"ghcr.io/devcontainers/features/rust:1": {}, "ghcr.io/devcontainers/features/azure-cli:1": {} diff --git a/.devcontainer/docker/Dockerfile b/.devcontainer/docker/Dockerfile index 20136f2..44e2f8a 100644 --- a/.devcontainer/docker/Dockerfile +++ b/.devcontainer/docker/Dockerfile @@ -3,5 +3,8 @@ FROM mcr.microsoft.com/devcontainers/rust:${TAG} USER vscode -COPY ./scripts /tmp/scripts/ -RUN bash /tmp/scripts/install.sh +# Install wasmtime +RUN curl https://wasmtime.dev/install.sh -sSf | bash + +# Install cargo-component and wkg +RUN cargo install cargo-component wkg