Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 576 Bytes

File metadata and controls

32 lines (22 loc) · 576 Bytes

Containerization / docker image

Build the docker image

docker image is built with the scripts/docker_image_build.sh script.

./scripts/docker_image_build.sh

you can change image name and version in the scripts/docker_image_build.sh file.

Run the docker image

# with nginx server
docker run -d -p 80:80 fastapi-app:1.0.0
# or directly with fastapi server
docker run -d -p 8000:8000 fastapi-app:1.0.0

Stop the docker image

docker stop <container_id>

Remove the docker image

docker rmi fastapi-app:1.0.0