mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
23 lines
525 B
Bash
Executable File
23 lines
525 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export LC_ALL=C
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd $DIR/.. || exit
|
|
|
|
DOCKER_IMAGE=${DOCKER_IMAGE:-dashpay/dashd-develop}
|
|
DOCKER_TAG=${DOCKER_TAG:-latest}
|
|
|
|
BUILD_DIR=${BUILD_DIR:-.}
|
|
|
|
rm docker/bin/*
|
|
mkdir docker/bin
|
|
cp $BUILD_DIR/src/dashd docker/bin/
|
|
cp $BUILD_DIR/src/dash-cli docker/bin/
|
|
cp $BUILD_DIR/src/dash-tx docker/bin/
|
|
strip docker/bin/dashd
|
|
strip docker/bin/dash-cli
|
|
strip docker/bin/dash-tx
|
|
|
|
docker build --pull -t $DOCKER_IMAGE:$DOCKER_TAG -f docker/Dockerfile docker
|