diff --git a/Dockerfile-2019.1.0 b/Dockerfile-2019.1.0 index c0a3570..9c38fe4 100644 --- a/Dockerfile-2019.1.0 +++ b/Dockerfile-2019.1.0 @@ -1,4 +1,5 @@ -FROM docker.io/python:3.9.7-buster +ARG PYTHON_TAG +FROM docker.io/python:$PYTHON_TAG ARG DEBIAN_FRONTEND=noninteractive # dolfin diff --git a/Makefile b/Makefile index 433ee88..2fd4f13 100644 --- a/Makefile +++ b/Makefile @@ -10,14 +10,15 @@ latest: docker build -t fenics -t fenics-2019.1.0.post0 -f Dockerfile-2019.1.0.post0 . SHELL=bash +# docker buildx build --platform linux/amd64,linux/arm64 buster: for TAG in $(shell echo 3.6.{9..13}-buster 3.{7..8}.{4..10}-buster {3.6.{14..15},3.{7..8}.{11..12},3.9.{6..9},3.10.{0..1}}-buster | sort); do \ echo BUILDING $$TAG && \ - docker buildx build --platform linux/amd64,linux/arm64 \ - -t mindthemath/fenics:2019.1.0-$$TAG \ + docker build \ + -t mindthemath/fenics-arm64:2019.1.0-$$TAG \ --build-arg PYTHON_TAG=$$TAG \ -f Dockerfile-2019.1.0 . && \ - docker push mindthemath/fenics:2019.1.0-$$TAG && \ - docker rmi mindthemath/fenics:2019.1.0-$$TAG || exit; \ + docker push mindthemath/fenics-arm64:2019.1.0-$$TAG && \ + docker rmi mindthemath/fenics-arm64:2019.1.0-$$TAG || exit; \ done