Question: Create a simple Python Flask application o Your application should have two different routes GET / add - uses the query string to obtain two

Create a simple Python Flask application
o Your application should have two different routes
GET /add - uses the query string to obtain two input values and returns the result of the
addition of those two values
POST /sub - uses the post body to obtain two input values and returns the result of the
subtraction of those two values
o Create the needed requirements.txt file
Create three different docker images from that one application
o Image 1
Base image = ubuntu
Host port =5001, Container Port =5000
o Image 2
Base image = alpine
Host port =5002, Container Port =5000
o Image 3
Base image = python
Host port =5003, Container Port =5003

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!