https://pantsbuild.org/ logo
#general
Title
# general
l

lively-gpu-26436

04/27/2023, 5:19 PM
Hi all, is there a way of setting the platform when packaging a
docker_image
target? I’m building an image that I later reference in a
docker_environment
matching that platform value.
c

curved-television-6568

04/27/2023, 5:53 PM
There is no specific platform support for
docker_image
yet, so if the
--platform
arg to the
FROM
instruction is not enough/working you’re currently out of options, afict. https://docs.docker.com/engine/reference/builder/#from
l

lively-gpu-26436

04/27/2023, 5:56 PM
I didn’t know about the arg in FROM, going to try, thanks!
👍 1
b

broad-processor-92400

04/27/2023, 8:14 PM
Feature requests issue, if you want something to follow: https://github.com/pantsbuild/pants/issues/17539 (Nice tip about FROM!)
👍 2
2 Views