I know it's possible to get the architecture of the Docker engine simply by running this command :
root@minus:~# docker info | grep Architecture
Architecture: armv7l
I have also tested it on other architecture and it is working well (aarch64 on arm64 and x86_64 for my Intel server).
My question is is there a special variable (usable like an argument) with the architecture available inside a Dockerfile. I know it possible to use an ARG for that but that mean that it has to be set by the caller, I would like to have something more automatic.
I would use it to automatically download the right image for the architecture. I've searched quite a lot and did not found anything and I'd be happy if there is a way ;).
Thanks in advance.