Skip to content

Commit a0fcc9b

Browse files
committed
Added directory walk for lambda deployment for docker build
1 parent 590f5ee commit a0fcc9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/api.nameguard.io/terraform/deploy_lambda.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,12 @@ if [ ! -f "../Dockerfile" ]; then
198198
fi
199199

200200
echo "Building Docker image..."
201-
if ! docker build ../ -t nameguard; then
201+
cd ../../packages/nameguard-python
202+
if ! docker build -t nameguard; then
202203
echo "Error: Docker build failed"
203204
exit 1
204205
fi
206+
cd ../../apps/api.nameguard.io/terraform
205207

206208
echo "Tagging Docker image..."
207209
if ! docker tag nameguard:latest ${ECR_URL}:latest; then

0 commit comments

Comments
 (0)