File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1+ ARG VARIANT="22"
2+ FROM mcr.microsoft.com/devcontainers/javascript-node:1-${VARIANT}
3+
4+ # Install system dependencies
5+ RUN apt-get update \
6+ && export DEBIAN_FRONTEND=noninteractive \
7+ && apt-get -y install --no-install-recommends curl gnupg2 tar xz-utils build-essential \
8+ && rm -rf /var/lib/apt/lists/*
9+
10+ # Switch to node user to install wasmtime
11+ USER node
12+
13+ # Install Wasmtime
14+ RUN curl https://wasmtime.dev/install.sh -sSf | bash
15+
16+ # Install just
17+ RUN npm install -g rust-just
18+
19+ # Set up workspace
20+ WORKDIR /workspace
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " wasi-http-js" ,
3+ "build" : {
4+ "dockerfile" : " Dockerfile" ,
5+ "context" : " .."
6+ },
7+ "settings" : {
8+ },
9+ "extensions" : [
10+ ],
11+ "forwardPorts" : [8080 ],
12+ "remoteUser" : " node"
13+ }
Original file line number Diff line number Diff line change 11# Sample: ` wasi:http ` in JavaScript
22
3- [ ![ Open in GitHub Codespaces] ( https://github.com/codespaces/badge.svg )] ( https://codespaces.new/andreiltd /sample-wasi-http-js )
3+ [ ![ Open in GitHub Codespaces] ( https://github.com/codespaces/badge.svg )] ( https://codespaces.new/bytecodealliance /sample-wasi-http-js )
44
55An example project showing how to build a spec-compliant
66[ ` wasi:http/proxy ` ] [ wasi-http ] server for WASI 0.2 written in JavaScript.
You can’t perform that action at this time.
0 commit comments