ARG FEDORA_MAJOR_VERSION=38 ARG BASE_IMAGE_URL=ghcr.io/ublue-os/silverblue-main FROM ${BASE_IMAGE_URL}:${FEDORA_MAJOR_VERSION} ARG RECIPE # copy over configuration files # etc is copied to /usr/etc/ to prevent "merge conflicts" # as it is the proper directory for "system" configuration files # and /etc/ is for editing by the local admin # see issue #28 (https://github.com/ublue-os/startingpoint/issues/28) COPY etc /usr/etc COPY usr /usr # copy scripts RUN mkdir /tmp/scripts COPY scripts /tmp/scripts RUN find /tmp/scripts -type f -exec chmod +x {} \; COPY ${RECIPE} /usr/etc/ublue-recipe.yml # yq used in build.sh and the setup-flatpaks recipe to read the recipe.yml # copied from the official container image as it's not avaible as an rpm COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq # copy and run the build script COPY build.sh /tmp/build.sh RUN chmod +x /tmp/build.sh && /tmp/build.sh # clean up and finalize container build RUN rm -rf \ /tmp/* \ /var/* && \ ostree container commit