new: add docker build reproducible code

This commit is contained in:
Valentin Lab
2025-09-19 12:44:05 +02:00
parent 0a45b0c71f
commit 0479ae25f8
5 changed files with 35395 additions and 0 deletions

12
build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
dsc=$(git describe HEAD --tags) || return 1
DOCKER_BUILDKIT=1 docker build --output type=local,dest=./dist . || return 1
if [ ! -f ./dist/opensem-prod.tar.xz ]; then
echo "Build failed: dist/opensem-prod.tar.xz not found"
exit 1
fi
mv dist/opensem-prod.tar.xz ./opensem-$dsc.tar.xz &&
rmdir ./dist
echo "Build successful: opensem-$dsc.tar.xz"