-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (37 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
ARG SECURITY_PROFILE=generic
# renovate: datasource=docker depName=quay.io/luet/base versioning:semver
FROM quay.io/luet/base:0.36.0 AS luet
FROM alpine AS base
ENV LUET_NOLOCK=true
COPY --from=luet /usr/bin/luet /usr/bin/luet
COPY repositories.yaml /repositories.yaml
RUN luet install -y --config repositories.yaml --system-target /framework \
dracut/kairos-network \
dracut/kairos-sysext \
system/suc-upgrade \
static/grub-config \
static/kairos-overlay-files \
initrd/alpine
FROM base AS generic
RUN luet install -y --config repositories.yaml --system-target /framework \
system/kcrypt \
system/kcrypt-challenger \
system/immucore \
system/kairos-agent
FROM base AS fips
RUN luet install -y --config repositories.yaml --system-target /framework \
fips/kcrypt \
fips/kcrypt-challenger \
fips/immucore \
fips/kairos-agent
# Final images
FROM ${SECURITY_PROFILE} AS post
RUN mkdir -p /framework/etc/kairos/
RUN luet database --system-target /framework get-all-installed --output /framework/etc/kairos/versions.yaml
# luet cleanup
RUN luet cleanup --system-target /framework
RUN rm -rf /framework/var/luet
FROM scratch AS final
COPY repositories.yaml /etc/luet/luet.yaml
COPY --from=post /framework /
COPY --from=post /usr/bin/luet /usr/bin/luet