diff --git a/.github/workflows/deploy_fastapi_backend.yml b/.github/workflows/deploy_fastapi_backend.yml index c246c47b..3e9defb3 100644 --- a/.github/workflows/deploy_fastapi_backend.yml +++ b/.github/workflows/deploy_fastapi_backend.yml @@ -68,7 +68,7 @@ jobs: - name: Build Docker Image run: | - docker build -t fastapi-lambda-image:${{ github.sha }} -f backend/docker/lambda.Dockerfile . + docker build --platform linux/arm64 -t fastapi-lambda-image:${{ github.sha }} -f backend/docker/lambda.Dockerfile . - name: Login to ECR run: | diff --git a/serverless.yml b/serverless.yml index 89eb666a..163731cf 100644 --- a/serverless.yml +++ b/serverless.yml @@ -3,7 +3,7 @@ service: fastapi-lambda provider: name: aws region: eu-west-2 - architecture: x86_64 + architecture: arm64 environment: API_KEY: ${env:API_KEY} ENVIRONMENT: ${env:ENVIRONMENT}