Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

 πŸ€– Plandex  πŸ“ Fix Dockerfile build context and directory paths ✏️ Edits: β€’ infra/deploy.sh βœ… Correct the Docker build context and file path

Dane Schneider5068f3b88321
diff --git a/infra/deploy.sh b/infra/deploy.sh
index 7fadaa5a..a3995cf8 100755
--- a/infra/deploy.sh
+++ b/infra/deploy.sh
@@ -58,8 +58,6 @@ else
generate_and_save_stack_tag
fi
-
-
# Function to ensure the ECR repository exists
ensure_ecr_repository_exists() {
# Check if the ECR repository exists
@@ -102,7 +100,9 @@ build_and_push_image() {
aws ecr get-login-password --region $(aws configure get region) | docker login --username AWS --password-stdin $ECR_REPOSITORY
# Build the Docker image
- docker build -t plandex-server:$IMAGE_TAG -f app/Dockerfile.server .
+ cd ../app
+docker build -t plandex-server:$IMAGE_TAG -f Dockerfile.server .
+cd -
# Tag the image for the ECR repository
docker tag plandex-server:$IMAGE_TAG $ECR_REPOSITORY:$IMAGE_TAG
@@ -135,9 +135,6 @@ update_ecs_service() {
log "Building and pushing the Docker image to ECR..."
build_and_push_image
-log "Building and pushing the Docker image to ECR..."
-build_and_push_image
-
# Deploy or update the CloudFormation stack
log "Deploying or updating the CloudFormation stack..."
deploy_or_update_stack