From b14337ef0ad192a5a812b710a34311982537acdd Mon Sep 17 00:00:00 2001 From: dev-docker Date: Wed, 19 May 2021 15:12:57 +0000 Subject: [PATCH] add $DEVPLATFORM this adds the above variable to allow building the nightly image on the (fast) native build platform --- Dockerfile.nightly | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile.nightly b/Dockerfile.nightly index dcbc36f..9fa1f94 100644 --- a/Dockerfile.nightly +++ b/Dockerfile.nightly @@ -1,8 +1,12 @@ ## DEVELOPMENT IMAGE -FROM node:15-alpine AS dev +ARG DEVPLATFORM=${TARGETPLATFORM:-linux/amd64} +FROM --platform=$DEVPLATFORM node:15-alpine AS dev # Install pre-requisites -RUN apk add --no-cache git python3 build-base +RUN case $DEVPLATFORM in \ + *arm*) apk add --no-cache git python3 build-base ;; \ + *) apk add --no-cache git python3 ;; \ + esac # Fetch and build tileboard master branch RUN mkdir /tileboard-source \