From d30eaab1de256d8c699444637237bc20efbe412c Mon Sep 17 00:00:00 2001 From: Josh McVey Date: Tue, 21 May 2024 14:14:59 -0500 Subject: [PATCH] fix(docker): need to specify platform (#15236) ### Forgot to specify the platform explicitly. > When it was built on a mac, we got the wrong platform. --- opentrons-ai-server/Dockerfile | 2 +- opentrons-ai-server/deploy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opentrons-ai-server/Dockerfile b/opentrons-ai-server/Dockerfile index 5c3a5ec5f36d..8a4ee3b944d8 100644 --- a/opentrons-ai-server/Dockerfile +++ b/opentrons-ai-server/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/python:3.12 +FROM --platform=linux/amd64 public.ecr.aws/lambda/python:3.12 COPY --from=public.ecr.aws/datadog/lambda-extension:57 /opt/. /opt/ diff --git a/opentrons-ai-server/deploy.py b/opentrons-ai-server/deploy.py index c33d249f4d73..21190a85e900 100644 --- a/opentrons-ai-server/deploy.py +++ b/opentrons-ai-server/deploy.py @@ -37,7 +37,7 @@ class BaseDeploymentConfig: @dataclass(frozen=True) class CrtDeploymentConfig(BaseDeploymentConfig): ECR_REPOSITORY: str = "crt-ecr-repo" - ECR_URL: str = f"{get_aws_account_id}.dkr.ecr.{get_aws_region()}.amazonaws.com" + ECR_URL: str = f"{get_aws_account_id()}.dkr.ecr.{get_aws_region()}.amazonaws.com" FUNCTION_NAME: str = "crt-api-function" IMAGE_NAME: str = "crt-ai-server"