Skip to content

Commit 51f4206

Browse files
committed
feat: add Dockerfile and devcontainer.json for Bun development environment
1 parent ddd9c45 commit 51f4206

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM oven/bun:debian
2+
3+
# Config Bun
4+
ENV PATH="~/.bun/bin:${PATH}"
5+
RUN ln -s /usr/local/bin/bun /usr/local/bin/node
6+
7+
# Update packages and install required dependencies
8+
RUN apt-get update && apt-get install -y \
9+
git \
10+
sudo \
11+
wget \
12+
unzip \
13+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/marcosgomesneto/bun-devcontainers/tree/main/src/basic-bun
3+
{
4+
"name": "Bun",
5+
"dockerFile": "Dockerfile",
6+
"features": {
7+
"ghcr.io/devcontainers/features/node:1": {
8+
"version": "24",
9+
"nodeGypDependencies": true
10+
},
11+
"ghcr.io/shyim/devcontainers-features/bun:0": {},
12+
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {}
13+
}
14+
}

0 commit comments

Comments
 (0)