forked from fbrinker/docker-tileboard-OUTDATED
add $DEVPLATFORM
this adds the above variable to allow building the nightly image on the (fast) native build platform
This commit is contained in:
parent
27d56a92cf
commit
b14337ef0a
@ -1,8 +1,12 @@
|
|||||||
## DEVELOPMENT IMAGE
|
## DEVELOPMENT IMAGE
|
||||||
FROM node:15-alpine AS dev
|
ARG DEVPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
||||||
|
FROM --platform=$DEVPLATFORM node:15-alpine AS dev
|
||||||
|
|
||||||
# Install pre-requisites
|
# 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
|
# Fetch and build tileboard master branch
|
||||||
RUN mkdir /tileboard-source \
|
RUN mkdir /tileboard-source \
|
||||||
|
Reference in New Issue
Block a user