This is a simple python web server settings.
With this docker image, you can create simple web application with cgi.
# build image
docker build -t pycgi .
# run image
HASH=`docker run -p 8883:80 -d pycgi`
# exec container
docker exec -it $HASH /bin/bash
You can Access from the below URL after run docker container.
- Shell Script ... http://localhost:8883/cgi-bin2/sh.cgi
- Python2.7 ... http://localhost:8883/cgi-bin2/py27.cgi
- Python3.6 ... http://localhost:8883/cgi-bin2/py36.cgi
- Python3.7 ... http://localhost:8883/cgi-bin2/py37.cgi
- Python3.8 ... http://localhost:8883/cgi-bin2/py38.cgi
- Python3.9 ... http://localhost:8883/cgi-bin2/py39.cgi
- Python3.10 ... http://localhost:8883/cgi-bin2/py310.cgi
- 2.7
- 3.6
- 3.7
- 3.8
- 3.9
- 3.10