Here’s the just real-looking out constituent ever.
A minute docker image FROM scratch
running a static contain of althttpd
.
Originate
Originate the most modern version:
This would perchance additionally simply accomplish a characterize named althttpd:most modern
.
With TLS make stronger
Diagram TLS
to any value:
This would perchance additionally simply role the name to althttpsd:most modern
.
To withhold an eye on the name of the image utter the NAME
variable.
From a tell Take a look at-in
Expend a hash esteem 0a03b61432d41837:
construct CHECKIN=0a03b61432d41837
The image is then named althttpd:0a03b61432d41837
.
Expend
Submit a given directory:
construct flee DIR=/path/to/declare material
See the declare material at http://localhost: 8080.
The port might even be customized the usage of the PORT
variable.
Examples
With logging:
docker flee --rm --publish 8080: 8080 --volume $(pwd)/index.html:/www/index.html --volume $(pwd)/space.log:/space.log althttpd:most modern -logfile /space.log
Acknowledgement
Previous work & inspiration:
- A minute Docker image to support static internet sites (HN submit)
contrib/docker
ofalthttpd
Read More
Share this on knowasiak.com to contain a look at with other folks on this subjectRegister on Knowasiak.com now when you happen to’re now not registered yet.