Based on https://github.com/tiangolo/fastapi project
First I am a big fan of fastapi framework and I hope this repo will be helpful.
The goal of this repository is to provide simple lightweight fastapi images !
Based on python:3-alpine
and gcr.io/distroless/python3-debian10
Based on python:3-slim
and gcr.io/distroless/python3-debian10
$ docker build -t small_fast_api .
$ docker run -p 8000:8000 -it small_fast_api
$ docker kill $(docker ps -a -q)
docker kill $(docker ps -a -q)
$ docker kill $(docker ps -a -q) && docker build -t small_fast_api . && docker run -p 8000:8000 -it small_fast_api
./compare.sh