Replies: 1 comment 2 replies
-
You can use https://github.com/tonistiigi/xx for this and FROM amazoncorretto:11
COPY --from=tonistiigi/xx / /
ARG TARGETPLATFORM
RUN echo march=$(xx-info march) But you will not be able to use this in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given the following sample dockerfile, how does one translate the builtin ARG
TARGETARCH
into aarch64 as the artifacts are named using this as the architecture identifier? Ideally, I would be able to build the multiarch image using this commanddocker build -f Dockerfile-t test --platform linux/arm64, linux/amd64
Beta Was this translation helpful? Give feedback.
All reactions