From 1b2502f3b64487621a67e1c2f4caea5896b51e2b Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 25 Mar 2025 12:22:50 -0300 Subject: [PATCH] add script to build docker image --- build-container-image.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 build-container-image.sh diff --git a/build-container-image.sh b/build-container-image.sh new file mode 100755 index 0000000..2df9c9d --- /dev/null +++ b/build-container-image.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +echo "Reseting invidious-companion repository (git reset --hard origin/HEAD)" +sh -c './reset-companion-repo.sh' +echo "Applying patches (git am ../patches/*.patch)" +sh -c './apply-patches.sh' +echo "Building container image" + +docker_cmd='docker buildx build ./invidious-companion' +if eval "$docker_cmd"; then + echo "Done" +else + echo "Failed to execute $docker_cmd" +fi