This image has been created primarily as a parent image for logiqx/python-bs4.
Aside from Python it includes lxml which sees a new minor release (e.g. version 4.6.0) approximately twice a year.
IMAGE=python-lxml
PYTHON_VERSION=3.9
ALPINE_VERSION=3.13
DEBIAN_VERSION=buster
LXML_VERSION=4.6
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}, lxml ${LXML_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