https://github.com/terror/python-webserver
A simple python webserver in a Docker container
https://github.com/terror/python-webserver
docker
Last synced: 11 months ago
JSON representation
A simple python webserver in a Docker container
- Host: GitHub
- URL: https://github.com/terror/python-webserver
- Owner: terror
- Created: 2021-07-20T14:08:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-20T14:37:02.000Z (over 4 years ago)
- Last Synced: 2025-02-15T09:37:18.237Z (11 months ago)
- Topics: docker
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### python-webserver
A python webserver in a docker container
#### Building the image
```bash
$ docker build -t python-webserver .
```
#### Running the container
```
$ docker run -dp 4000:4000 python-webserver
```
#### Sample usage
```
> curl -X POST http://localhost:4000/set?a=b
{
"a": "b"
}
> curl http://localhost:4000/get?key=a
a = b
> curl -X DELETE http://localhost:4000/remove?key=a
{}
```