Some checks failed
Build containers / Build and push image (linux/arm64, asahi-cosmic, 43) (push) Failing after 4m18s
28 lines
695 B
Docker
28 lines
695 B
Docker
ARG IMAGE=asahi-cosmic
|
|
ARG VERSION=43
|
|
|
|
FROM quay.io/fedora/fedora:${VERSION} as builder
|
|
|
|
ARG IMAGE
|
|
ARG VERSION
|
|
|
|
#Install deps and the latest rpm-ostree
|
|
RUN dnf -y install rpm-ostree selinux-policy-targeted python3 && dnf upgrade -y --enablerepo=updates-testing --refresh rpm-ostree
|
|
|
|
#Copy all files into the container and set permissions
|
|
COPY . /src
|
|
RUN chmod -R a=rX,u+w /src
|
|
WORKDIR /src
|
|
|
|
#Build the wanted image and version
|
|
RUN ./builder.sh ${IMAGE} ${VERSION}
|
|
|
|
# Create the container and set the labels
|
|
FROM scratch
|
|
COPY --from=builder /src/images/${IMAGE}/manifest.ociarchive /
|
|
LABEL containers.bootc 1
|
|
ENV container=oci
|
|
# Make systemd the default
|
|
STOPSIGNAL SIGRTMIN+3
|
|
CMD ["/sbin/init"]
|