Add Dockerfile override for ARM64

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2019-06-24 18:18:05 +01:00
parent 0ca78b1fab
commit ced4ee56dc
2 changed files with 38 additions and 1 deletions

View File

@ -3,11 +3,13 @@ set -e
export arch=$(uname -m)
export eTAG="latest-dev"
export DOCKERFILE="Dockerfile"
if [ "$arch" = "armv7l" ] ; then
eTAG="latest-armhf-dev"
elif [ "$arch" = "aarch64" ] ; then
eTAG="latest-arm64-dev"
DOCKERFILE="Dockerfile.arm64"
fi
echo "$1"
@ -24,4 +26,5 @@ NS=openfaas
echo Building $NS/basic-auth-plugin:$eTAG
docker build -t $NS/basic-auth-plugin:$eTAG .
docker build -t $NS/basic-auth-plugin:$eTAG . -f $DOCKERFILE