From 950d5145e13dead66ed6a5f6d4381f7422a5decd Mon Sep 17 00:00:00 2001 From: Morten Brekkevold Date: Mon, 4 Mar 2024 10:45:05 +0000 Subject: [PATCH] Specify linux/amd64 as the docker build platform The deb.nodesource.com archives only publish NodeJS packages for the amd64 architecture. Attempting to build this Dockerfile on a Apple silicon Mac (aarch64 architecture) will result in an image that pulls the incorrect version of `nodejs` from deb.debian.org instead. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b1272026fa..cf8d0fb79f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ # be world-readable! # # -FROM debian:bullseye +FROM --platform=linux/amd64 debian:bullseye #### Prepare the OS base setup ###