Sign inSign up

nitecon/staticweb

By nitecon

Updated almost 5 years ago

Tiny static web server FROM: Scratch!

Image
0

595

nitecon/staticweb repository overview

The intent behind this docker image is to have an absolutely tiny static web server for kubernetes / other container platforms for static file serving and quick dashboard testing. This web server was built with Golang and the container is built from SCRATCH, so no OS at all! I have also gone as far as to enable nobody so the process does not require privileged account to run.

Currently supports 2 envars that can be set to alter the behavior of the web server:

WEB_DIR

  • This envar enables setting a different web directory to serve from (remember to mount your content)
  • Example: WEB_DIR="/data2"

NOTE: by default WEB_DIR is set to read files from /data

For issues / pull requests and additional details please see the github repo available here: https://github.com/Nitecon/staticweb

BIND_PORT

  • This envar enables you to bind on a different port should you need to, it takes an integer value
  • Example: BIND_PORT: 80

Tag summary

Content type

Image

Digest

Size

1.9 MB

Last updated

almost 5 years ago

docker pull nitecon/staticweb