From 60b5a57d17d1320e954c78cca863e6361b1c9a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20H=C3=B6rmann?= Date: Wed, 19 Jun 2024 12:41:25 +0200 Subject: [PATCH] :bug: fix(build): Specify platform for containers not working on arm --- src/envoy-proxy/Dockerfile | 2 +- src/frontend/Dockerfile | 2 +- src/user-simulator/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/envoy-proxy/Dockerfile b/src/envoy-proxy/Dockerfile index aacc8245..332804d4 100644 --- a/src/envoy-proxy/Dockerfile +++ b/src/envoy-proxy/Dockerfile @@ -1,4 +1,4 @@ -FROM envoyproxy/envoy:v1.23.0 +FROM --platform=linux/amd64 envoyproxy/envoy:v1.23.0 RUN apt-get update && \ apt-get install -y curl python3 python3-pip && \ diff --git a/src/frontend/Dockerfile b/src/frontend/Dockerfile index d17fae4c..c44ff218 100644 --- a/src/frontend/Dockerfile +++ b/src/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14.21.3-slim +FROM --platform=linux/amd64 node:14.21.3-slim # Create app directory WORKDIR /usr/src/app diff --git a/src/user-simulator/Dockerfile b/src/user-simulator/Dockerfile index c3a90553..ec2e6898 100644 --- a/src/user-simulator/Dockerfile +++ b/src/user-simulator/Dockerfile @@ -1,5 +1,5 @@ # based on snippet from https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md -FROM node:14.20-slim AS base +FROM --platform=linux/amd64 node:14.20-slim AS base # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer