This Docker image contains a simple Python program using Flask that responds with "Hello, World!" when accessed via an HTTP GET request.
The image includes the following files and configurations:
- app.py: The main Python script that defines the Flask application and sets up the /graphql endpoint.
- Dockerfile: Configuration file that defines the Docker image, sets up the Python environment, and specifies the instructions to run the program when the container starts.
- Python: Uses the base Python image, version 3.11-slim.
To run the program on your machine, make sure Docker is installed. Then, execute the following command in your terminal:
docker run -p 4000:4000 alexmpz/hola-graphql
Once the container is running, you can access the API by navigating to:
http://172.17.0.2:4000/