Skip to content

Trying to build small docker image to serve static websites

Notifications You must be signed in to change notification settings

Trugamr/tiny-vite-docker

Repository files navigation

Tiny Vite Docker Image

Using redbean binary and scratch docker image to create tiny docker image that serves static files.

These were the final results

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

Building and running docker image

docker build -t tiny-vite-docker .
docker run --rm -p 80:80 tiny-vite-docker

About

Trying to build small docker image to serve static websites

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages