source/projects/tentacles/mkdocker.sh

16 lines
332 B
Bash
Raw Normal View History

2023-06-03 07:24:13 +00:00
#!/usr/bin/env bash
set -eoux -o pipefail
cd "$(dirname "$(realpath "$0")")"
tmpdir=$(mktemp -d)
bazel build //projects/tentacles:tentacles.zapp
zapp=$(realpath $(bazel run --run_under=echo //projects/tentacles:tentacles.zapp))
cp Dockerfile "$tmpdir/"
cp -r "$zapp" "$tmpdir/"
cd "${tmpdir}"
docker build "$@" -f Dockerfile .