diff options
author | joeoc2001 <[email protected]> | 2024-12-20 22:05:15 +0000 |
---|---|---|
committer | joeoc2001 <[email protected]> | 2024-12-20 22:05:15 +0000 |
commit | 673e912bc8dd79e09dcab1245f64340c381418f2 (patch) | |
tree | 78485b5446bf970f46ab871500562419307feea0 | |
parent | f8bef76385f8af54b2f3de24879c1fe04d277c11 (diff) |
Use plain Bun for Docker
-rw-r--r-- | .github/workflows/publish-docker.yml | 7 | ||||
-rw-r--r-- | Dockerfile | 3 | ||||
-rw-r--r-- | readme.md | 4 |
3 files changed, 6 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..898843e --- /dev/null +++ b/Dockerfile | |||
@@ -0,0 +1,3 @@ | |||
1 | FROM oven/bun:latest | ||
2 | ADD ./ ./ | ||
3 | CMD ["bun", "run", "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/): |