Skip to content

Commit dd399f8

Browse files
committed
Add .devcontainer files
1 parent 816ca1f commit dd399f8

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

.devcontainer/devcontainer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)