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 \