aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakshay <[email protected]>2024-12-25 19:19:49 +0000
committerGitHub <[email protected]>2024-12-25 19:19:49 +0000
commitf8ad9c07bfa4e3f3757ed97358cc75ab580b2662 (patch)
tree47dfb8d71332ca2de92136749f1b01d9c2caf4da
parent9a9bf55a1acac9a2f1b19c7b40e05967c22f5725 (diff)
parentc120dd4b8be91eb37f2e2f1b4a3bb163e3c6abb4 (diff)
Merge pull request #13 from Joeoc2001/master
Use plain Bun for Docker
-rw-r--r--.github/workflows/publish-docker.yml7
-rw-r--r--Dockerfile5
-rw-r--r--readme.md4
3 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml
index d958e57..a07d70b 100644
--- a/.github/workflows/publish-docker.yml
+++ b/.github/workflows/publish-docker.yml
@@ -13,13 +13,8 @@ jobs:
13 - name: checkout repository 13 - name: checkout repository
14 uses: actions/checkout@v4 14 uses: actions/checkout@v4
15 15
16 - name: install nix
17 uses: cachix/install-nix-action@v27
18 with:
19 github_access_token: ${{ secrets.GITHUB_TOKEN }}
20
21 - name: build docker image 16 - name: build docker image
22 run: nix build -L .#dockerImage 17 run: docker build .
23 18
24 - name: log in to github container registry 19 - name: log in to github container registry
25 uses: docker/login-action@v3 20 uses: docker/login-action@v3
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7fba594
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,5 @@
1FROM oven/bun:latest
2ADD ./ ./
3RUN mkdir -p /data
4WORKDIR /data
5CMD ["bun", "run", "/home/bun/app/src/index.js"] \ No newline at end of file
diff --git a/readme.md b/readme.md
index eb802f3..6afb77b 100644
--- a/readme.md
+++ b/readme.md
@@ -64,13 +64,13 @@ $ docker pull ghcr.io/oppiliappan/lurker:latest
64# quirk of using nix, it should not affect usage 64# quirk of using nix, it should not affect usage
65$ docker image ls 65$ docker image ls
66REPOSITORY TAG IMAGE ID CREATED SIZE 66REPOSITORY TAG IMAGE ID CREATED SIZE
67ghcr.io/oppiliappan/lurker latest ba3733164889 54 years ago 186MB 67ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB
68 68
69# start lurker in a container 69# start lurker in a container
70# 70#
71# lurker stores data in /data, 71# lurker stores data in /data,
72# so create a volume on the host accordingly: 72# 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
74``` 74```
75 75
76or with just [bun](https://bun.sh/): 76or with just [bun](https://bun.sh/):