This repository contains a docker image that allows running API built using FastAPI.
-
You can mount your folder in the container to directly run the
api.py
docker run -ti --rm -v $(pwd):/app -p 8000:8000 aminehy/docker-fastapi-ml:latest
-
or just run docker container
docker run -ti --rm aminehy/docker-fastapi-ml:latest
You can build this docker image from a dockerfile using this command
docker build -t aminehy/docker-fastapi-ml:latest .