Files
William Douglas 114295de66 Add workflow to publish container images on github
Note that variable expansion in --from and FROM was working oddly,
see: https://github.com/docker/cli/issues/3356#issuecomment-957892224
for context.
2024-06-14 13:31:19 -07:00

20 lines
504 B
Docker

FROM clearlinux:latest AS builder
ARG clear_ver
ARG swupd_args
# Move to latest Clear Linux release
RUN swupd update --no-boot-update -V $clear_ver $swupd_args
# Install clean os-core bundle in target directory
# using the new os version
RUN source /usr/lib/os-release \
&& mkdir /install_root \
&& swupd os-install -V ${VERSION_ID} \
--path /install_root --statedir /swupd-state \
--bundles=os-core --no-boot-update
FROM scratch
COPY --from=builder /install_root /
CMD ["/bin/bash"]