Skip to content

--platform parameter spills out of its FROM clause #5968

Open
@syedriko

Description

@syedriko

I have an image built on linux/amd64 that I need to use as a base, on amd64 and arm64. I am treating that image as data-only and simply need to copy some files from it to the resulting image. I was hoping the following would work:

ARG LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/openshift-lightspeed/lightspeed-rag-content@sha256:3e96332648a6f8ff1879c7ae11c818ea7f1c8d5b8a99c4bff406c98c8a7d4541
FROM --platform=linux/amd64 ${LIGHTSPEED_RAG_CONTENT_IMAGE} as lightspeed-rag-content
FROM registry.redhat.io/ubi9/ubi-minimal:latest
COPY --from=lightspeed-rag-content /rag/vector_db/ocp_product_docs ./vector_db/ocp_product_docs
RUN uname -m

, but it doesn't - on arm64, the

FROM registry.redhat.io/ubi9/ubi-minimal:latest

line picks up the amd64 flavor of the UBI9 base image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    jiraIssues which will be sync'd to a card at https://issues.redhat.com/projects/RUN

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions