2024-02-03 15:12:35 +01:00
|
|
|
#!/bin/sh -eu
|
|
|
|
|
|
|
|
|
|
: "${DOCKER_BIN:=docker}"
|
|
|
|
|
|
|
|
|
|
here=$(dirname "$(realpath "$0" || echo "$0")")
|
|
|
|
|
root=$(dirname "$here")
|
|
|
|
|
|
|
|
|
|
builddir=build
|
|
|
|
|
|
|
|
|
|
[ -z "${DEBUG:-}" ] || set -x
|
|
|
|
|
|
|
|
|
|
cd "$root"
|
|
|
|
|
|
|
|
|
|
[ -d "$builddir" ] || mkdir "$builddir"
|
2024-10-09 21:47:04 +02:00
|
|
|
uv export --quiet --output-file="$builddir"/requirements.txt
|
|
|
|
|
$DOCKER_BIN build --tag=webclip .
|