forked from fbrinker/docker-tileboard-OUTDATED
Create a merged branch to deploy
This commit is contained in:
commit
36b39b251d
@ -1,8 +1,14 @@
|
|||||||
## 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
|
ARG DEVPLATFORM
|
||||||
|
RUN echo DEVPLATFORM: $DEVPLATFORM \
|
||||||
|
&& 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 \
|
||||||
@ -12,6 +18,7 @@ RUN mkdir /tileboard-source \
|
|||||||
&& mkdir /tileboard \
|
&& mkdir /tileboard \
|
||||||
&& ln -s /tileboard build \
|
&& ln -s /tileboard build \
|
||||||
&& yarn install \
|
&& yarn install \
|
||||||
|
&& npm install --global node-sass \
|
||||||
&& yarn run build
|
&& yarn run build
|
||||||
|
|
||||||
# Start Server
|
# Start Server
|
||||||
|
Reference in New Issue
Block a user