Repository navigation
feat(docker): self-host image on GHCR - #211
Merged
Merged
Conversation
Owner
Author
Pre-merge checklistAddressed
Tested (local Podman)
CI and release
Docs
After merge: release v1.3.0 on Sunday 2026-11-15. Check that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Docker image so people can run their own Toolglass, which is the entry point for r/selfhosted and awesome-selfhosted (see docs/NEXT.md).
What's in it
Dockerfile: builds the site with Node 22 on the build platform, then servesdistwithnginx-unprivilegedon port 8080 (runs as uid 101). The image is about 57 MB.docker/nginx.conf:/tools/<slug>maps totools/<slug>.htmlthe same way GitHub Pages does, unknown paths get404.htmlwith status 404,/assets/is cached for a year,sw.jsisno-cache, and it adds nosniff, no-referrer and frame-deny headers..github/workflows/docker.yml: av*tag builds amd64 and arm64 and pushesghcr.io/ajithakdev/toolglassasX.Y.Z,X.Yandlatest. A PR that touches the Docker files only builds. Nothing is published on merge.docker runnear the top, a "Self-host with Docker" section with Compose, and a line naming the upload-first sites it replaces. Also updated CHANGELOG, CODEMAP, RESOURCES-AND-GUIDE and NEXT.Tested locally (Podman)
nginx(uid 101)./,/tools/json,/about,/sitemap.xmlreturn 200;/tools/nopereturns 404 and renders the in-app "Tool Not Found" page.max-age=31536000, immutable, andsw.jsgetsno-cache.Not covered
vite previewfailed the same way there, so it's a browser limitation, not the image. It needs HTTPS or a real localhost browser.example.com/tools/) isn't supported. The README says to use the root of a domain or subdomain.