From a0fcc9b786b81a8ece78c043616a98099cf7b7aa Mon Sep 17 00:00:00 2001 From: BanaSeba Date: Fri, 27 Dec 2024 14:26:31 +0100 Subject: [PATCH] Added directory walk for lambda deployment for docker build --- apps/api.nameguard.io/terraform/deploy_lambda.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api.nameguard.io/terraform/deploy_lambda.sh b/apps/api.nameguard.io/terraform/deploy_lambda.sh index f336f9518..a29d7d8ce 100644 --- a/apps/api.nameguard.io/terraform/deploy_lambda.sh +++ b/apps/api.nameguard.io/terraform/deploy_lambda.sh @@ -198,10 +198,12 @@ if [ ! -f "../Dockerfile" ]; then fi echo "Building Docker image..." -if ! docker build ../ -t nameguard; then +cd ../../packages/nameguard-python +if ! docker build -t nameguard; then echo "Error: Docker build failed" exit 1 fi +cd ../../apps/api.nameguard.io/terraform echo "Tagging Docker image..." if ! docker tag nameguard:latest ${ECR_URL}:latest; then