Skip to content

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

add platform to Dockerfile to fix builds on M1

Dane Schneider810f072993fb
diff --git a/app/Dockerfile.server b/app/Dockerfile.server
index 17b34b9c..aa8a3422 100644
--- a/app/Dockerfile.server
+++ b/app/Dockerfile.server
@@ -1,4 +1,4 @@
-FROM golang:1.21.3
+FROM --platform=linux/amd64 golang:1.21.3
RUN apt-get update && \
apt-get install -y git
diff --git a/infra/deploy.sh b/infra/deploy.sh
index 2fa007c1..ebb300d7 100755
--- a/infra/deploy.sh
+++ b/infra/deploy.sh
@@ -80,6 +80,8 @@ ensure_ecr_repository_exists
ECR_REPOSITORY=$(aws ecr describe-repositories --repository-names plandex-ecr-repository | jq -r '.repositories[0].repositoryUri')
export IMAGE_TAG=$(git rev-parse --short HEAD)
+log "IMAGE_TAG: $IMAGE_TAG"
+
# Function to deploy or update the CloudFormation stack using AWS CDK
deploy_or_update_stack() {
# Check if the stack exists