mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 22:33:23 +00:00
Add Dockerfile override for ARM64
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user