From cf35a270bb7b06f6de9170895a1e7df34d1ec2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 22 Aug 2023 10:39:25 +0200 Subject: [PATCH] minor: read Dockerfile from stdin --- bin/spc-alpine-docker | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/spc-alpine-docker b/bin/spc-alpine-docker index 3d135791..c4ff7d9c 100755 --- a/bin/spc-alpine-docker +++ b/bin/spc-alpine-docker @@ -52,7 +52,7 @@ fi # Detect docker env is setup if ! $DOCKER_EXECUTABLE images | grep -q cwcc-spc-$SPC_USE_ARCH; then echo "Docker container does not exist. Building docker image ..." - ALPINE_DOCKERFILE=$(cat << EOF + $DOCKER_EXECUTABLE build -t cwcc-spc-$SPC_USE_ARCH -f- . < "$(pwd)"/Dockerfile - - $DOCKER_EXECUTABLE build -t cwcc-spc-$SPC_USE_ARCH . - rm "$(pwd)"/Dockerfile fi # Check if in ci (local terminal can execute with -it)