Skip to content

Commit 916d51b

Browse files
committed
New image: bun
1 parent 26e0400 commit 916d51b

9 files changed

+48
-0
lines changed

bun/README-short.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bun is a fast all-in-one JavaScript runtime, package manager, bundler, and test runner.

bun/content.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# What is Bun?
2+
3+
Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called `bun`​.
4+
5+
At its core is the Bun runtime, a fast JavaScript runtime designed as a drop-in replacement for Node.js. It's written in Zig and powered by JavaScriptCore under the hood, dramatically reducing startup times and memory usage.
6+
7+
​​The `bun`​ command-line tool also implements a test runner, script runner, and Node.js-compatible package manager, all significantly faster than existing tools and usable in existing Node.js projects with little to no changes necessary.
8+
9+
> [Documentation](https://bun.sh/docs)
10+
11+
%%LOGO%%
12+
13+
# How to use this image
14+
15+
## `Dockerfile`
16+
17+
```dockerfile
18+
FROM %%IMAGE%%:<version>-debian
19+
20+
COPY src src
21+
COPY package.json package.json
22+
COPY bun.lockb bun.lockb
23+
24+
RUN bun install
25+
26+
CMD ["src/index.ts"]
27+
```
28+
29+
## `docker run`
30+
31+
```sh
32+
docker run --ulimit memlock=-1:-1 bun
33+
```
34+
35+
> It is recommended to set the `--ulimit` flag to the value above to avoid unnecessary resource contention.

bun/get-help.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[the Bun Discord server](https://bun.sh/discord)

bun/github-repo

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/oven-sh/bun

bun/license.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bun itself is MIT-licensed.
2+
3+
Bun statically links with other software, which have [various](https://bun.sh/docs/project/licensing) licenses.

bun/logo.png

4.08 KB
Loading

bun/maintainer.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[the Bun team](%%GITHUB-REPO%%)

bun/variant-debian-slim.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## `%%IMAGE%%:<version>-debian-slim`
2+
3+
This image is based on the official [`debian:bullseye-slim`](https://hub.docker.com/_/debian) Docker image with `bun` built-in.

bun/variant-debian.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## `%%IMAGE%%:<version>-debian`
2+
3+
This image is based on the official [`debian:bullseye`](https://hub.docker.com/_/debian) Docker image with `bun` built-in.

0 commit comments

Comments
 (0)