A simple http echo server written in python
run:
poetry shell
python pong_py/main.py
# you should see
* Running on https://127.0.0.1:8080
from another console:
curl https://127.0.0.1:8080/ping/111
{"pong":"111"}
$ docker build --no-cache -t pong-py:local .
$ docker run -d -name pong-py -p 9090:8080 -e PONG_LISTENING_ADDRESS=0.0.0.0:8080 pong-py:local
# note the port 9090 !
$ curl https://127.0.0.1:9090/ping/1235
{"pong":"1235"}