feat: switch to separate build script

This commit is contained in:
ER
2023-04-02 11:44:44 +03:00
parent d4df64af9d
commit 68122c87ca
2 changed files with 13 additions and 9 deletions

View File

@@ -10,15 +10,9 @@ COPY recipe.yml /etc/ublue-recipe.yml
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
RUN rpm-ostree override remove firefox firefox-langpacks
RUN echo "-- Installing RPMs defined in recipe.yml --" && \
rpm_packages=$(yq '.rpms[]' < /etc/ublue-recipe.yml) && \
for pkg in $rpm_packages; do \
echo "Installing: ${pkg}" && \
rpm-ostree install $pkg; \
done && \
echo "---"
# copy and run the build script
COPY build.sh /tmp/build.sh
RUN chmod +x /tmp/build.sh && /tmp/build.sh
RUN rm -rf \
/tmp/* \