Pin Docker 'builder' stage to current architecture

This is useful for people who want to do multi-architecture Docker
builds; it means the builder stage need only be run omce for all
architectures, even though the final stage needs to be built for *each*
architecture.
This commit is contained in:
Matt Cengia 2020-09-28 16:49:59 +10:00
parent 8db881a64d
commit e973d10bf6

View File

@ -1,5 +1,5 @@
# Builder # Builder
FROM node:current as builder FROM --platform=$BUILDPLATFORM node:current as builder
WORKDIR /src WORKDIR /src