A simple Python app, which makes requests to https://catfact.ninja/fact and prints the results to the terminal.
The application is packaged as a Docker image, which allows running it without installing anything but Docker.
- Git clone this repository
- Build the image locally, tagging it as
1.0
docker build -t catfacts:1.0 .
- Run an instance of the image (container), each invocation will print a random fact about cats
NOTE: the
docker run --rm catfacts:1.0
--rm
flag tells Docker to remove the container when it's finished, since we don't need to keep any important data, we just print and quit, reference - cleanup