Target arm64 architecture for web (#967)

This commit is contained in:
David Roth
2024-08-28 16:12:43 -07:00
committed by GitHub
parent b7406f3d01
commit 5c2a8bd392
2 changed files with 8 additions and 7 deletions

View File

@@ -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:

View File

@@ -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