Skip to content

Commit e2afd7f

Browse files
committed
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)
1 parent 90b29cf commit e2afd7f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "ghcr.io/asw101/rust-wasi-hello-devcontainer:latest",
2+
"image": "ghcr.io/bytecodealliance/sample-wasi-http-rust-devcontainer:latest",
33
"features": {
44
//"ghcr.io/devcontainers/features/rust:1": {},
55
"ghcr.io/devcontainers/features/azure-cli:1": {}

.devcontainer/docker/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ FROM mcr.microsoft.com/devcontainers/rust:${TAG}
33

44
USER vscode
55

6-
COPY ./scripts /tmp/scripts/
7-
RUN bash /tmp/scripts/install.sh
6+
# Install wasmtime
7+
RUN curl https://wasmtime.dev/install.sh -sSf | bash
8+
9+
# Install cargo-component and wkg
10+
RUN cargo install cargo-component wkg

0 commit comments

Comments
 (0)