11# Base devcontainer image
22FROM mcr.microsoft.com/devcontainers/base:ubuntu
33
4+ ARG TARGETARCH=amd64
5+ ENV GO_VERSION=1.25.0
6+
47# Install Go (match default-container)
5- RUN wget -q -O go.tar.gz https://go.dev/dl/go1.25.0.linux-amd64.tar.gz \
8+ RUN case "${TARGETARCH}" in \
9+ amd64) GO_ARCH=amd64 ;; \
10+ arm64) GO_ARCH=arm64 ;; \
11+ *) echo "Unsupported architecture: ${TARGETARCH}" && exit 1 ;; \
12+ esac \
13+ && wget -q -O go.tar.gz "https://go.dev/dl/go${GO_VERSION}.linux-${GO_ARCH}.tar.gz" \
614 && tar -C /usr/local -xzf go.tar.gz \
715 && rm go.tar.gz
816ENV PATH="/usr/local/go/bin:${PATH}"
@@ -15,11 +23,10 @@ RUN set -eux; \
1523 apt-get update; \
1624 apt-get install -y --no-install-recommends ca-certificates curl tar git; \
1725 rm -rf /var/lib/apt/lists/*; \
18- arch="$(uname -m)" ; \
19- case "$arch" in \
20- x86_64|amd64) cpu="amd64" ;; \
21- aarch64|arm64) cpu="arm64" ;; \
22- *) echo "Unsupported architecture: $arch" ; exit 1 ;; \
26+ case "${TARGETARCH}" in \
27+ amd64) cpu="amd64" ;; \
28+ arm64) cpu="arm64" ;; \
29+ *) echo "Unsupported architecture: ${TARGETARCH}" ; exit 1 ;; \
2330 esac; \
2431 ver="${WASSETTE_VERSION#v}" ; \
2532 asset="wassette_${ver}_linux_${cpu}.tar.gz" ; \
@@ -38,4 +45,3 @@ CMD ["bash"]
3845# Provide a default MCP config inside the image for VS Code
3946# The devcontainer.json will copy this into the workspace's .vscode on create if missing
4047COPY mcp.json /opt/wassette/mcp.json
41-
0 commit comments