https://github.com/ananthb/thttpd-container
Minimal OCI container image with a small fast HTTP server.
https://github.com/ananthb/thttpd-container
Last synced: 4 months ago
JSON representation
Minimal OCI container image with a small fast HTTP server.
- Host: GitHub
- URL: https://github.com/ananthb/thttpd-container
- Owner: ananthb
- License: mit
- Created: 2021-09-14T09:28:07.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T17:47:34.000Z (over 3 years ago)
- Last Synced: 2025-03-02T21:32:56.381Z (over 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thttpd container image
[](https://github.com/ananthb/thttpd-container/actions/workflows/containers.yml)
Produces a minimal OCI container image containing a static [thttpd](https://acme.com/software/thttpd/) binary.
thttpd is configured to serve out of the /srv directory.

Thanks to [ACME Laboratories](https://acme.com/software/thttpd/) for thttpd.
Source Hut Mirror - [git.sr.ht/~ananth/thttpd-container](https://git.sr.ht/~ananth/thttpd-container)
## Usage
The image can be used in two ways:
1. Mount static content to /srv and run the image.
podman run --rm -v ./static:/srv -p 8080:8080 ghcr.io/ananthb/thttpd-container
The container listens for HTTP connections on port 8080.
2. Extend this image:
[Hugo](https://gohugo.io) static site example
FROM docker.io/klakegg/hugo:0.83.1-ext-onbuild AS hugo
FROM ghcr.io/ananthb/thttpd-container
COPY --from=hugo /target /srv/
The hugo container generates a hugo site and stores it in the /target directory.
In the second stage, those static files are copied to the thttpd-container image and placed in the /srv directory.
---
MIT Licensed, see [LICENSE](./LICENSE).
Copyright (c) 2021, & 2022 Ananth Bhaskararaman