- Alpine Nginx
A React/Vite Dockerfile that compiles a minimal Nginx from source on Alpine with pre-compressed assets and security headers, plus a comparison and the full Dockerfiles of all five React approaches.
- BusyBox Httpd
A React/Vite Dockerfile that serves gzip-precompressed static files with BusyBox httpd on the 92.5 KB lipanski/docker-static-website base image.
- Distroless Nginx
A React/Vite Dockerfile that compiles a fully static, UPX-compressed Nginx and ships it in a FROM scratch image under 6MB with gzip and Brotli assets.
- Go FastHTTP
A React/Vite Dockerfile that embeds the built static files into a single UPX-compressed Go FastHTTP binary and runs it from a scratch image.
- Optimization Techniques
An index of five Dockerfile optimization approaches for React SPAs, from simple BusyBox httpd to custom-built Nginx and a Go FastHTTP binary.
- Scratch Nginx
A React/Vite Dockerfile that builds a minimal dynamically linked Nginx, copies only its shared libraries into a scratch image, and uses a static C healthcheck binary.