Skip to content

Commit f8ad9c0

Browse files
authored
Merge pull request #13 from Joeoc2001/master
Use plain Bun for Docker
2 parents 9a9bf55 + c120dd4 commit f8ad9c0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/publish-docker.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@ jobs:
1313
- name: checkout repository
1414
uses: actions/checkout@v4
1515

16-
- name: install nix
17-
uses: cachix/install-nix-action@v27
18-
with:
19-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
20-
2116
- name: build docker image
22-
run: nix build -L .#dockerImage
17+
run: docker build .
2318

2419
- name: log in to github container registry
2520
uses: docker/login-action@v3

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM oven/bun:latest
2+
ADD ./ ./
3+
RUN mkdir -p /data
4+
WORKDIR /data
5+
CMD ["bun", "run", "/home/bun/app/src/index.js"]

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ $ docker pull ghcr.io/oppiliappan/lurker:latest
6464
# quirk of using nix, it should not affect usage
6565
$ docker image ls
6666
REPOSITORY TAG IMAGE ID CREATED SIZE
67-
ghcr.io/oppiliappan/lurker latest ba3733164889 54 years ago 186MB
67+
ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB
6868

6969
# start lurker in a container
7070
#
7171
# lurker stores data in /data,
7272
# so create a volume on the host accordingly:
73-
$ docker run -v /your/host/lurker-data:/data ghcr.io/oppiliappan/lurker:latest
73+
$ docker run -v /your/host/lurker-data:/data -p 3000 ghcr.io/oppiliappan/lurker:latest
7474
```
7575

7676
or with just [bun](https://bun.sh/):

0 commit comments

Comments
 (0)