{"id":13629361,"url":"https://github.com/mgred/althttpd-docker","last_synced_at":"2025-04-22T11:08:23.693Z","repository":{"id":55054382,"uuid":"481947024","full_name":"mgred/althttpd-docker","owner":"mgred","description":"A tiny docker image running althttpd","archived":false,"fork":false,"pushed_at":"2022-04-15T18:08:11.000Z","size":13,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T14:34:48.155Z","etag":null,"topics":["althttpd","docker","webserver"],"latest_commit_sha":null,"homepage":"https://mgred.github.io/althttpd-docker/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgred.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-15T12:10:46.000Z","updated_at":"2022-04-29T21:10:40.000Z","dependencies_parsed_at":"2022-08-14T10:20:15.523Z","dependency_job_id":null,"html_url":"https://github.com/mgred/althttpd-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgred%2Falthttpd-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgred%2Falthttpd-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgred%2Falthttpd-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgred%2Falthttpd-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgred","download_url":"https://codeload.github.com/mgred/althttpd-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249259148,"owners_count":21239422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["althttpd","docker","webserver"],"created_at":"2024-08-01T22:01:08.530Z","updated_at":"2025-04-16T16:32:16.224Z","avatar_url":"https://github.com/mgred.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# `althttpd` docker\n\nA tiny docker image `FROM scratch` running a _static_ build of [`althttpd`](https://sqlite.org/althttpd).\n\n## Build\n\nBuild the [latest](https://sqlite.org/althttpd/info?name=trunk) version:\n\n```bash\nmake\n```\n\nThis will create an image named `althttpd:latest`.\n\n### With TLS support\n\nSet `TLS` to any value:\n\n```bash\nmake TLS=1\n```\n\nThis will set the name to `althttpsd:latest`.\nTo control the name of the image use the `NAME` variable.\n\n### From a particular _Check-in_\n\nUse a hash like [0a03b61432d41837](https://sqlite.org/althttpd/info/0a03b61432d41837):\n\n```bash\nmake CHECKIN=0a03b61432d41837\n```\n\nThe image is then named `althttpd:0a03b61432d41837`.\n\n## Use\n\nPublish a given directory:\n\n```bash\nmake run DIR=/path/to/content\n```\n\nSee the content at [http://localhost:8080](http://localhost:8080).\nThe port can be customized using the `PORT` variable.\n\n### Examples\n\nWith logging:\n\n```bash\ndocker run --rm \\\n  --publish 8080:8080 \\\n  --volume $(pwd)/index.html:/www/index.html \\\n  --volume $(pwd)/site.log:/site.log \\\n  althttpd:latest -logfile /site.log\n```\n\n## Acknowledgement\n\nPrevious work \u0026 inspiration:\n\n- [_A tiny Docker image to serve static websites_](https://news.ycombinator.com/item?id=31003395) (HN post)\n- [`contrib/docker`](https://sqlite.org/althttpd/dir?ci=tip\u0026name=contrib/docker) of `althttpd`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgred%2Falthttpd-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgred%2Falthttpd-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgred%2Falthttpd-docker/lists"}