You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lntop/docker/build.sh

16 lines
454 B
Bash

#!/usr/bin/env bash
set -e -o pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
LND_HOME=${LND_HOME:?required}
LNTOP_SRC_DIR=${LNTOP_SRC_DIR:-./..}
# we rsync repo sources to play well with docker cache
echo "Staging lntop source code..."
mkdir -p lntop/_src
rsync -a --exclude='.git/' --exclude='docker/' --exclude='README.md' --exclude='LICENSE' "$LNTOP_SRC_DIR" lntop/_src
echo "Building lntop docker container..."
exec docker-compose build "$@" lntop