Using redbean binary and scratch docker image to create tiny docker image that serves static files.
React app final built size was 147.5kB
dist/index.html 0.33 kB
dist/assets/index-d24ab1de.js 143.11 kB
Final docker image size was 691kB
REPOSITORY TAG IMAGE ID CREATED SIZE
tiny-vite-docker latest d7d5070a873b 2 minutes ago 691kB
docker build -t tiny-vite-docker .
docker run --rm -p 80:80 tiny-vite-docker