16 lines
300 B
Bash
Executable file
16 lines
300 B
Bash
Executable file
#!/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 .
|