17 lines
300 B
Text
17 lines
300 B
Text
|
|
#!/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"
|
||
|
|
poetry export --output="$builddir"/requirements.txt
|
||
|
|
$DOCKER_BIN build --tag webclip .
|