selfhostable, read-only reddit client

rework docker image bits

Changed files
+3 -28
.github
workflows
+1 -2
.github/workflows/publish-docker.yml
··· 14 14 uses: actions/checkout@v4 15 15 16 16 - name: build docker image 17 - run: docker build . 17 + run: docker build -t lurker:latest . 18 18 19 19 - name: log in to github container registry 20 20 uses: docker/login-action@v3 ··· 25 25 26 26 - name: publish docker image 27 27 run: | 28 - docker load < result 29 28 docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest 30 29 docker push ghcr.io/${{ github.repository_owner }}/lurker:latest
+2 -23
flake.nix
··· 41 41 cp -R ./node_modules/* $out/node_modules 42 42 ls -la $out/node_modules 43 43 ''; 44 - outputHash = "sha256-iv1DddCTB1yyu21Ev/c4xtLHSvDas9jQAO2Ob9Iah2Q="; 44 + outputHash = "sha256-wCMsk/gR+U5fCHcRj7Mxvh9Lg6wZAtMn7CvjyCPar+g="; 45 45 outputHashAlgo = "sha256"; 46 46 outputHashMode = "recursive"; 47 47 }; ··· 73 73 74 74 ''; 75 75 }; 76 - dockerImage = with final; 77 - final.dockerTools.buildImage { 78 - name = pname; 79 - tag = "latest"; 80 - 81 - copyToRoot = final.buildEnv { 82 - name = "image-root"; 83 - paths = [final.lurker]; 84 - pathsToLink = ["/bin"]; 85 - }; 86 - 87 - runAsRoot = '' 88 - mkdir -p /data 89 - ''; 90 - 91 - config = { 92 - Cmd = ["/bin/${pname}"]; 93 - WorkingDir = "/data"; 94 - Volumes = {"/data" = {};}; 95 - }; 96 - }; 97 76 }; 98 77 99 78 devShell = forAllSystems (system: let ··· 108 87 }); 109 88 110 89 packages = forAllSystems (system: { 111 - inherit (nixpkgsFor."${system}") lurker node_modules dockerImage; 90 + inherit (nixpkgsFor."${system}") lurker node_modules; 112 91 }); 113 92 114 93 defaultPackage = forAllSystems (system: nixpkgsFor."${system}".lurker);
-3
readme.md
··· 60 60 # pull the latest image from gh container registry 61 61 $ docker pull ghcr.io/oppiliappan/lurker:latest 62 62 63 - # the image will be marked as created on 1970, this is a 64 - # quirk of using nix, it should not affect usage 65 - $ docker image ls 66 63 REPOSITORY TAG IMAGE ID CREATED SIZE 67 64 ghcr.io/oppiliappan/lurker latest ba3733164889 ??? 227MB 68 65