Sanic web server in minimal Alpine Linux based image.
1.4K
Sanic web server in minimal Alpine Linux based image.
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"}
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
docker build -t ubergarm/sanic-alpine .
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
Currently about ~77MiB according to docker images.
This image is inspired by the frol/docker-alpine-python3 image listed below. Thanks!
Content type
Image
Digest
Size
20.9 MB
Last updated
about 9 years ago
docker pull ubergarm/sanic-alpine