This is a simple Python/Flask application for labs purposes.
It listens on port 8080 and receives requests on /ping and returns a pong message and HTTP 200.
- Docker
- Python 3.9 or later (if running locally)
-
Build the Docker image:
docker build -t ping-pong . -
Run the container:
docker run -p 8080:8080 ping-pong -
The application will be available at
http://localhost:8080/ping
-
Install the required dependencies:
pip install -r requirements.txt -
Run the application:
python app.py -
The application will be available at
http://localhost:8080/ping
Send a GET request to /ping: