diff --git a/apps/api.nameguard.io/terraform/deploy_lambda.sh b/apps/api.nameguard.io/terraform/deploy_lambda.sh index f336f951..a29d7d8c 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