mirror of
https://github.com/kennethnym/jrx.git
synced 2026-03-20 03:41:18 +00:00
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:
6
.devcontainer/Dockerfile
Normal file
6
.devcontainer/Dockerfile
Normal 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/*
|
||||||
14
.devcontainer/devcontainer.json
Normal file
14
.devcontainer/devcontainer.json
Normal 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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user