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