diff options
-rw-r--r-- | .github/workflows/publish-docker.yml | 7 | ||||
-rw-r--r-- | Dockerfile | 5 | ||||
-rw-r--r-- | readme.md | 4 |
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 @@ | |||
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"] \ No newline at end of file | ||
@@ -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 |
66 | REPOSITORY TAG IMAGE ID CREATED SIZE | 66 | 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 |
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 | ||
76 | or with just [bun](https://bun.sh/): | 76 | or with just [bun](https://bun.sh/): |