This image has been created primarily for an online cubing competition.
Aside from Python it includes python-Levenshtein which rarely sees a new minor release (e.g. version 0.12.0).
IMAGE=python-lev
PYTHON_VERSION=3.9
ALPINE_VERSION=3.13
DEBIAN_VERSION=buster
LEV_VERSION=0.12
docker image build . -t ${IMAGE}:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
docker image build . -f Dockerfile-slim -t ${IMAGE}:${PYTHON_VERSION}-slim-${DEBIAN_VERSION}
git add Dockerfile* README.md
git commit -m "Update to Python ${PYTHON_VERSION}, Alpine ${ALPINE_VERSION}, python-Levenshtein ${LEV_VERSION}"
git push
for TAG in ${PYTHON_VERSION}-alpine${ALPINE_VERSION} ${PYTHON_VERSION}-slim-${DEBIAN_VERSION}
do
git tag ${TAG}
git push origin ${TAG}
done
docker pull logiqx/${IMAGE}:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
for TAG in ${PYTHON_VERSION}-alpine latest
do
docker tag logiqx/${IMAGE}:${PYTHON_VERSION}-alpine${ALPINE_VERSION} logiqx/${IMAGE}:${TAG}
docker push logiqx/${IMAGE}:${TAG}
done
docker pull logiqx/${IMAGE}:${PYTHON_VERSION}-slim-${DEBIAN_VERSION}
for TAG in ${PYTHON_VERSION}-slim
do
docker tag logiqx/${IMAGE}:${PYTHON_VERSION}-slim-${DEBIAN_VERSION} logiqx/${IMAGE}:${TAG}
docker push logiqx/${IMAGE}:${TAG}
done