Skip to content

multi stage builds: Error: determining starting point for build: no FROM statement found #5868

Open
@r10r

Description

Trying to set the base image name using a build argument fails in 1.37.5 for multi stage builds.
With buildah 1.33.6 this works as expected.

Example

ARG image_build
FROM $image_build as build
RUN echo foo >bar

ARG image_release
FROM $image_release
COPY --from=build bar bar

buildah bud --build-arg image_build=alpine:latest --build-arg image_release=alpine:3.20.3

[1/2] STEP 1/3: FROM alpine:latest AS build
[1/2] STEP 2/3: RUN echo foo >bar
[1/2] STEP 3/3: ARG image_release
Error: determining starting point for build: no FROM statement found
buildah --version
buildah version 1.37.5 (image-spec 1.1.0, runtime-spec 1.2.0)

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions