mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-08-18 19:55:59 +00:00
114295de66
Note that variable expansion in --from and FROM was working oddly, see: https://github.com/docker/cli/issues/3356#issuecomment-957892224 for context.
20 lines
504 B
Docker
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"]
|