faas/gateway/build.sh
Alex Ellis 221ed7a292 Update for ARM builds
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-10-01 23:36:23 +02:00

24 lines
407 B
Bash
Executable File

#!/bin/sh
export dockerfile="Dockerfile"
export arch=$(uname -m)
export eTAG="latest-dev"
if [ "$arch" = "armv7l" ] ; then
dockerfile="Dockerfile.armhf"
eTAG="latest-armhf-dev"
fi
echo "$1"
if [ "$1" ] ; then
eTAG=$1
fi
echo Building functions/gateway:$eTAG
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
-t functions/gateway:$eTAG . -f $dockerfile