Created folder named "122_Dockerize_REST" under Development folder. Put the dockerized program for RESTful API supporting GET and POST methods at the root path '/' respectively.
Technical Specifications
Docker image is based on python:3.8.6-slim-buster. It uses Flask 1.1.2 and gunicorn 20.0.4 as the application core.
How to run
Build the docker image first:
docker build -t rest .
And then run it as a container:
docker run -it -p 8080:8080 rest
Checklist
[x] Code compiles correctly.
[x] Changes are tested properly.
[x] Added the README / documentation, if necessary.
Resolves Issue #122
Description
Created folder named "122_Dockerize_REST" under Development folder. Put the dockerized program for RESTful API supporting GET and POST methods at the root path '/' respectively.
Technical Specifications
Docker image is based on
python:3.8.6-slim-buster
. It usesFlask 1.1.2
andgunicorn 20.0.4
as the application core.How to run
Build the docker image first:
docker build -t rest .
And then run it as a container:
docker run -it -p 8080:8080 rest
Checklist