The smallest Docker image to serve static websites is 7.77MB. It can be used to create a non-root user to own the files and run our server. The image has some neat features, like basic auth, throttling and virtual hosts. You can build and run the image by calling: docker build -t static:latest . docker run -it --rm -p 3000:3000 static: Latest.
1 Comment
Sort: