Skip to content

Commit

Permalink
Update luet to use our own built luet package (#131)
Browse files Browse the repository at this point in the history
Co-authored-by: Mauro Morales <[email protected]>
  • Loading branch information
Itxaka and mauromorales authored Jul 17, 2024
1 parent 21341a3 commit 4d3926c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
ARG SECURITY_PROFILE=generic
FROM quay.io/kairos/packages:luet-utils-0.35.2 AS luet
FROM quay.io/kairos/packages-arm64:luet-utils-0.35.2 AS luet-arm64

FROM quay.io/luet/base:0.35.2 AS luet

# Common packages for all images
FROM alpine AS base
FROM alpine AS alpine-amd64
ENV LUET_NOLOCK=true
COPY --from=luet /usr/bin/luet /usr/bin/luet

FROM alpine AS alpine-arm64
ENV LUET_NOLOCK=true
COPY --from=luet-arm64 /usr/bin/luet /usr/bin/luet

# Common packages for all images
FROM alpine-${TARGETARCH} AS base
COPY repositories.yaml /repositories.yaml
RUN luet install -y --config repositories.yaml --system-target /framework \
dracut/kairos-network \
Expand Down Expand Up @@ -39,6 +45,7 @@ RUN luet cleanup --system-target /framework
RUN rm -rf /framework/var/luet

FROM scratch AS final
ARG TARGETARCH
COPY repositories.yaml /etc/luet/luet.yaml
COPY --from=post /framework /
COPY --from=luet /usr/bin/luet /usr/bin/luet
COPY --from=post /usr/bin/luet /usr/bin/luet

0 comments on commit 4d3926c

Please sign in to comment.