From 0bf390694432de3251fae6c34f68af08d86f67f3 Mon Sep 17 00:00:00 2001 From: Bianca Danforth Date: Thu, 18 Apr 2024 12:51:28 -0400 Subject: [PATCH] specify platform in base image (#2916) See #mozilla-services/socorro-stackwalk/pull/15 --- docker/Dockerfile | 4 ++-- frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9f3457a37..075137acd 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,14 +2,14 @@ # # NOTE(willkg): We're using node 14 because of this issue: # https://github.com/docker/for-mac/issues/5831 -FROM node:16.10.0-slim@sha256:9bec98898848c3e3a1346bc74ab04c2072da9d0149d8be1ea0485dbf39fd658f as frontend +FROM --platform=linux/amd64 node:16.10.0-slim@sha256:9bec98898848c3e3a1346bc74ab04c2072da9d0149d8be1ea0485dbf39fd658f as frontend COPY . /app WORKDIR /app RUN bin/build_frontend.sh -FROM python:3.11.9-slim-bullseye@sha256:320da7887b542fee80af7fac52146047a980d767abb9b8fe69d86eaa9113bcc4 +FROM --platform=linux/amd64 python:3.11.9-slim-bullseye@sha256:320da7887b542fee80af7fac52146047a980d767abb9b8fe69d86eaa9113bcc4 ARG userid=10001 ARG groupid=10001 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 81f7151e1..ccd652f16 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -4,7 +4,7 @@ # # This should match what we have in the Node section of the main Dockerfile. -FROM node:16.19.1-slim@sha256:1417528032837e47462ea8cfe983108b0152f989e95cba2ddfbe0f0ddc2dcfbd as frontend +FROM --platform=linux/amd64 node:16.19.1-slim@sha256:1417528032837e47462ea8cfe983108b0152f989e95cba2ddfbe0f0ddc2dcfbd as frontend ARG userid=10001 ARG groupid=10001