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
PORT
The port to listen on. Defaults to80
SPA_MODE
when set to1
it only serves up/public/assets
and all other requests go to/public/index.html
FROM ghcr.io/compliance-framework/nano-web:latest
WORKDIR /
COPY ./dist /public/
ENV PORT=8081
ENV SPA_MODE=1
EXPOSE $PORT
CMD ["/serve"]