This example demonstrates how to create a Docker container that generates random sentences using the wonderwords Python package.
Dockerfile: Defines the Docker image based on python:3.13.9random_sentence.py: Python script that generates and prints a random sentenceREADME.md: This file
To build the Docker image, run the following command from this directory:
docker build -t random-sentence-generator .Once built, you can run the container with:
docker run random-sentence-generatorEach time you run the container, it will generate and print a new random sentence.
Random sentence: The quick brown fox jumps over the lazy dog.
Note: The actual output will vary as the sentence is randomly generated each time.