Files
ark/client/scripts/build
Louis Singer ffcf08420f Add built-in cli to docker container (#114)
* add -faucet flag in scripts/build

* localhost guard on Faucet request

* add ark cli into docker image

* "BUILD_FLAG" => "BUILD_ARGS", "-faucet" => "with-faucet"

* [docker] use alpine:3.14 instead of debian

* Revert changes

* Expose docker volume for embedded wallet datadir

---------

Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
2024-02-20 17:28:08 +01:00

27 lines
345 B
Bash
Executable File

#!/bin/bash
set -e
PARENT_PATH=$(dirname $(
cd $(dirname $0)
pwd -P
))
if [[ -z $GOOS ]]; then
GOOS=$(eval "go env GOOS")
fi
if [[ -z $GOARCH ]]; then
GOARCH=$(eval "go env GOARCH")
fi
echo "Building for $GOOS $GOARCH"
pushd $PARENT_PATH
mkdir -p build
GO111MODULE=on go build -ldflags="-s -w" -o build/ark-cli-$GOOS-$GOARCH .
popd