mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-10 16:56:07 +00:00
startingpoint has been updated to use multiple recipes. currently this process is broken as the default recipe is always used. this fixes this by adding a build arg to the containerfile and github workflow build.
26 lines
680 B
Docker
26 lines
680 B
Docker
ARG FEDORA_MAJOR_VERSION=37
|
|
ARG BASE_CONTAINER_URL=ghcr.io/ublue-os/silverblue-main
|
|
ARG RECIPE
|
|
|
|
FROM ${BASE_CONTAINER_URL}:${FEDORA_MAJOR_VERSION}
|
|
|
|
# copy over configuration files
|
|
COPY etc /etc
|
|
# COPY usr /usr
|
|
|
|
COPY ${RECIPE} /tmp/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
|