File size: 734 Bytes
945748a
 
 
 
 
 
 
 
 
84be72f
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 python -m venv venv; # To create a venv environment
 venv\Scripts\activate; # To activate the environment
 python -m pip install -q --upgrade pip;# To upgrade the pip 
 python -m pip install -qr requirements.txt # To install the requirements

 # THe model of the input is useful to structure the input of the data (class)
 #The variable for a function will be an object of the class defined

 #   View a summary of image vulnerabilities and recommendations 
 docker scout quickview

  # To start docker
docker start

 # To build a docker image
 docker build -t fastapi-app .

 #   View a summary of image vulnerabilities and recommendations 
 docker scout quickview

 # To run the container

 docker run -it -p 8000:7860 fastapi-app