mirror of
https://github.com/kennethnym/jrx.git
synced 2026-03-20 03:41:18 +00:00
Merge pull request #2 from kennethnym/update-devcontainer
Add devcontainer with Bun
This commit is contained in:
10
.devcontainer/Dockerfile
Normal file
10
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
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/*
|
||||||
|
|
||||||
|
RUN curl -fsSL https://bun.sh/install | bash \
|
||||||
|
&& ln -s /root/.bun/bin/bun /usr/local/bin/bun \
|
||||||
|
&& ln -s /root/.bun/bin/bunx /usr/local/bin/bunx
|
||||||
8
.devcontainer/devcontainer.json
Normal file
8
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "jrx",
|
||||||
|
"build": {
|
||||||
|
"context": ".",
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
"postCreateCommand": "bun install && cd example && bun install"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user