Add devcontainer with Node.js 22 and Bun

Installs dependencies for both root and example/ on container creation.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-02-28 01:03:04 +00:00
parent b9e45afea0
commit 0a1a4fbf09
2 changed files with 20 additions and 0 deletions

6
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
curl unzip git ca-certificates \
&& rm -rf /var/lib/apt/lists/*

View File

@@ -0,0 +1,14 @@
{
"name": "jrx",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "22"
},
"ghcr.io/nickvdyck/devcontainer-features/bun:1": {}
},
"postCreateCommand": "bun install && cd example && bun install"
}