Skip to content

A very tiny webserver for serving SPAs and files from a container

Notifications You must be signed in to change notification settings

compliance-framework/nano-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nano-web

Hyper-minimal single binary gzipping webserver for serving static content based on labstack echo-server. Based on alpine.

Has SPA mode which includes runtime templating of vite environment variables.

Serves from /public

Config as ENV

  • PORT The port to listen on. Defaults to 80
  • SPA_MODE when set to 1 404 request will return /public/index.html as a 200.

Example Dockerfile

FROM ghcr.io/compliance-framework/nano-web:latest
COPY ./dist /public/
ENV PORT=8081
ENV SPA_MODE=1

About

A very tiny webserver for serving SPAs and files from a container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages