From 5c2a8bd3928f828e3d936f912fc457959b582c33 Mon Sep 17 00:00:00 2001 From: David Roth Date: Wed, 28 Aug 2024 16:12:43 -0700 Subject: [PATCH] Target arm64 architecture for web (#967) --- .codeflow.yml | 8 ++------ apps/web/Dockerfile | 7 ++++++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.codeflow.yml b/.codeflow.yml index eb1bf3c736..f281de5be9 100644 --- a/.codeflow.yml +++ b/.codeflow.yml @@ -10,18 +10,14 @@ build: - BaldurECR: name: web path: ./apps/web/Dockerfile + architecture: arm64 - BaldurECR: name: docs path: ./apps/base-docs/Dockerfile - BaldurECR: name: bridge path: ./apps/bridge/Dockerfile - - BaldurECR: - name: goerli-bridge - path: ./apps/bridge/Dockerfile - - BaldurECR: - name: sepolia-bridge - path: ./apps/bridge/Dockerfile + multi_arch: true operate: slack_channels: diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 2c83902b0f..a04619a303 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -1,6 +1,11 @@ FROM 652969937640.dkr.ecr.us-east-1.amazonaws.com/containers/node:current -RUN apt-get update && apt-get install -y zip +ARG TARGETARCH +ENV TARGETARCH=${TARGETARCH:-arm64} + +# Install dependencies +# python3 is required for utf-8-validate and bufferutil +RUN apt-get update && apt-get install -y gnupg wget python3 build-essential make -y ENV NODE_ENV=production