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
|
||||
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
|
||||
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
|
||||
RUN mkdir /tileboard-source \
|
||||
@ -12,6 +18,7 @@ RUN mkdir /tileboard-source \
|
||||
&& mkdir /tileboard \
|
||||
&& ln -s /tileboard build \
|
||||
&& yarn install \
|
||||
&& npm install --global node-sass \
|
||||
&& yarn run build
|
||||
|
||||
# Start Server
|
||||
@ -31,4 +38,4 @@ COPY --from=dev /tileboard /tileboard
|
||||
# Start Server
|
||||
WORKDIR /tileboard
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT python3 -m http.server
|
||||
ENTRYPOINT python3 -m http.server
|
||||
|
Reference in New Issue
Block a user