docker build -t tiny-http . && docker run -ti -p 8080:8080 tiny-http
curl localhost:8080
docker ps
REPOSITORY TAG IMAGE ID CREATED SIZE
tiny-http latest 14c6fc12c0b5 16 minutes ago 8.487 MB
The serve.py fails with the attached error. To fix the error changed the
self.wfile.write("Hello World!")
to
self.wfile.write("Hello World!".encode())