mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-20 12:04:52 +00:00
31 lines
1.3 KiB
Docker
31 lines
1.3 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=./recipe.yml
|
|
|
|
# Copy static configurations and component files.
|
|
# Warning: If you want to place anything in "/etc" of the final image, you MUST
|
|
# place them in "./usr/etc" in your repo, so that they're written to "/usr/etc"
|
|
# on the final system. That is the proper directory for "system" configuration
|
|
# templates on immutable Fedora distros, whereas the normal "/etc" is ONLY meant
|
|
# for manual overrides and editing by the machine's admin AFTER installation!
|
|
# See issue #28 (https://github.com/ublue-os/startingpoint/issues/28).
|
|
COPY usr /usr
|
|
|
|
# Copy the recipe that we're building.
|
|
COPY ${RECIPE} /usr/share/ublue-os/recipe.yml
|
|
|
|
# "yq" used in build.sh and the "setup-flatpaks" just-action to read recipe.yml.
|
|
# Copied from the official container image since it's not available as an RPM.
|
|
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
|
|
|
|
# Copy the build script and all custom scripts.
|
|
COPY scripts /tmp/scripts
|
|
|
|
# Run the build script, then clean up temp files and finalize container build.
|
|
RUN chmod +x /tmp/scripts/build.sh && \
|
|
/tmp/scripts/build.sh && \
|
|
rm -rf /tmp/* /var/* && \
|
|
ostree container commit
|