move2docker/scripts/buildx.sh

12 lines
399 B
Bash
Raw Normal View History

2020-02-12 16:57:13 +00:00
#!/bin/bash
cd "${0%/*}/.."
source ./config/config.sh
export PROP_SERVER_KEY=$(cat ./config/id_rsa)
export UI_MODE=$1
2020-02-12 17:19:25 +00:00
docker buildx build \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--build-arg UI_MODE --build-arg PROP_SERVER --build-arg PROP_SERVER_USER \
--build-arg PROP_SERVER_KEY --build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER \
-t move2docker:$UI_MODE-latest .