WebClub-NITK / Hacktoberfest-2k20

Repository for Hacktoberfest 2020 Meetup at NITK Surathkal
14 stars 53 forks source link

Add Dockerize a simple REST API #122 #123

Closed pancreaflame closed 4 years ago

pancreaflame commented 4 years ago

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 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

pancreaflame commented 4 years ago

Hello @krithikvaidya , I would like to request your review on this. Thanks!

krithikvaidya commented 4 years ago

Good job!