Sign inSign up

ubergarm/sanic-alpine

By ubergarm

Updated about 9 years ago

Sanic web server in minimal Alpine Linux based image.

Image
2

1.4K

ubergarm/sanic-alpine repository overview

sanic-alpine

License

Sanic web server in minimal Alpine Linux based image.

Runnning

This image comes preloaded with the hello world demo server.py:

docker run --rm -it -p 8000:8000 ubergarm/sanic-alpine

Test it:

$ curl localhost:8000
{"hello":"world"}

Development

Volume mount your own sanic project to run it within a container:

docker run --rm -it -v `pwd`:/app -p 8000:8000 ubergarm/sanic-alpine myserver.py

Building

docker build -t ubergarm/sanic-alpine .

Benchmarking

Use docker inspect, or use link to hit the right ip address:

# use docker inspect, or use `link` to hit the right ip address etc...
docker run --rm -it williamyeh/wrk -t4 -c400 -d30s http://172.17.0.1:8000

Size

Currently about ~77MiB according to docker images.

Thanks

This image is inspired by the frol/docker-alpine-python3 image listed below. Thanks!

References

Tag summary

Content type

Image

Digest

Size

20.9 MB

Last updated

about 9 years ago

docker pull ubergarm/sanic-alpine