Containerfile: build without cgo to avoid arm64 crashing
This commit changes the build to not build with CGO. There is really no need to build with CGO, we only need it for the `crypt()` version in the images library. However since with the merge of https://github.com/osbuild/images/pull/1114 that is no longer an issue.
This commit is contained in:
parent
f46ca14f85
commit
c72ed92a2f
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,10 @@ COPY . /build
|
|||
WORKDIR /build
|
||||
# keep in sync with:
|
||||
# https://github.com/containers/podman/blob/2981262215f563461d449b9841741339f4d9a894/Makefile#L51
|
||||
RUN go build -tags "containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper" ./cmd/image-builder
|
||||
# disable cgo as
|
||||
# a) gcc crashes on fedora41/arm64 regularly
|
||||
# b) we don't really need it
|
||||
RUN CGO_ENABLED=0 go build -tags "containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper" ./cmd/image-builder
|
||||
|
||||
FROM registry.fedoraproject.org/fedora:41
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue