8000 GitHub - jaswdr/example-gunicorn: Simple example of Python Web service using Gunicorn with Docker
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simple example of Python Web service using Gunicorn with Docker

Notifications You must be signed in to change notification settings

jaswdr/example-gunicorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Gunicorn example

Getting started

Build and run the container.

docker build -t example .
docker run -p 8000:8000 example

Then do a HTTP request to http://localhost:8000.

curl -i http://localhost:8000

HTTP/1.1 200 OK
Server: gunicorn
Date: Wed, 19 May 2021 08:43:56 GMT
Connection: close
Content-Type: application/json
Content-Length: 44

{"statusCode": 200, "body": "Hello, world!"}

About

Simple example of Python Web service using Gunicorn with Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0