add $DEVPLATFORM

this adds the above variable to allow building the nightly image on the (fast) native build platform
This commit is contained in:
dev-docker 2021-05-19 15:12:57 +00:00
parent 27d56a92cf
commit b14337ef0a
1 changed files with 6 additions and 2 deletions

View File

@ -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 \