Files
secureblue/Containerfile
plata 60ddd67713 feat: use Fedora 38 (#64)
* Update Containerfile

* Update recipe.yml

* Update recipe.yml

* Update README.md
2023-05-09 14:27:49 +00:00

35 lines
1.0 KiB
Docker

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