I have a number of lightweight Docker images on Docker Hub, generally built for convenience on AWS:
Note: I’ve deliberately indented python-bs4 because python-lxml is the parent image.
PYTHON_VERSION=3.9
ALPINE_VERSION=3.13
DEBIAN_VERSION=buster
docker pull alpine:${ALPINE_VERSION}
docker pull debian-slim:${DEBIAN_VERSION}
docker pull python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
docker pull python:${PYTHON_VERSION}-slim-${DEBIAN_VERSION}
I have a generic process for updating each of my repositories on Docker Hub; building and tagging Docker images.
git add Dockerfile* README.md
git commit -m "Update ..."
git push
git tag [tagname]
git push origin [tagname]
docker pull [image]
docker tag [image:tagname] [image:alt_tagname_1]
docker tag [image:tagname] [image:alt_tagname_2]
...
docker push [image:alt_tagname_1]
docker push [image:alt_tagname_2]
...
Separate documents exist for each image and can be viewed by clicking the links at the top of this document.