mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-18 02:54:55 +00:00
-> there's no reason to send the recipe to the client as it is only used in the build stages
25 lines
676 B
Docker
25 lines
676 B
Docker
ARG FEDORA_MAJOR_VERSION=37
|
|
|
|
# change this line if you want to change the image
|
|
FROM ghcr.io/ublue-os/silverblue-main:${FEDORA_MAJOR_VERSION}
|
|
|
|
# copy over configuration files
|
|
COPY etc /etc
|
|
# COPY usr /usr
|
|
|
|
COPY recipe.yml /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
|