Python CLI in Docker - Dockerfile
FROM python:3.8
RUN pip3 install requests
COPY curl.py .
ENTRYPOINT ["python3", "curl.py"]
$ docker build -t mydocker .
$ docker run --rm mydocker https://httpbin.org/get
This is a simple implementation of a curl-like script in Python. Wrapped in a Docker container. First build the container and then you can run the script.