File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This container build is just a demo effectively; it shows how one might
2
+ # build bootc in a container flow, using Fedora ELN as the target.
3
+ FROM quay.io/centos-bootc/fedora-bootc:eln as build
4
+ RUN dnf config-manager --set-enabled eln-crb && dnf -y install cargo ostree-devel openssl-devel && dnf clean all
5
+ COPY . /build
6
+ WORKDIR /build
7
+ # See https://www.reddit.com/r/rust/comments/126xeyx/exploring_the_problem_of_faster_cargo_docker/
8
+ # We aren't using the full recommendations there, just the simple bits.
9
+ RUN --mount=type=cache,target=/build/target --mount=type=cache,target=/var/roothome make bin-archive && mkdir -p /out && cp target/bootc.tar.zst /out
10
+
11
+ FROM quay.io/centos-bootc/fedora-bootc:eln
12
+ COPY --from=build /out/bootc.tar.zst /tmp
13
+ RUN tar -C / --zstd -xvf /tmp/bootc.tar.zst && rm -vf /tmp/*
You can’t perform that action at this time.
0 commit comments