Display HN: A minute Docker image running althttpd

A tiny docker image FROM scratch running a static build of althttpd. Build Build the latest version: This will create an image named althttpd:latest. With TLS support Set TLS to any value: This will set the name to althttpsd:latest. To control the name of the image use the NAME variable. From a particular Check-in Use…

123
Display HN: A minute Docker image running althttpd

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:

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.

Charlie Layers
WRITTEN BY

Charlie Layers

Fill your life with experiences so you always have a great story to tellBio: About: