meshviewer-docker/Dockerfile

39 lines
995 B
Docker
Raw Normal View History

2019-11-17 09:37:29 +00:00
FROM node:13.1.0-alpine
2018-04-01 13:01:54 +00:00
2019-11-17 09:37:29 +00:00
MAINTAINER Stefan Hoffmann <stefan@freifunk-troisdorf.de>, Nils Jakobi <nils@freifunk-troisdorf.de>
# add community repo
RUN echo @community http://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
2018-04-09 08:21:34 +00:00
# Install Yarn
2019-11-17 09:37:29 +00:00
RUN apk add \
build-base \
gcc \
git \
# libffi-dev \
ruby \
ruby-dev \
yarn@community
2018-04-09 08:21:34 +00:00
# Install Grunt
RUN npm install --global grunt-cli && \
gem install --no-rdoc --no-ri sass -v 3.4.22 && \
gem install --no-rdoc --no-ri compass
2019-11-17 09:37:29 +00:00
# Clone Meshviewer
WORKDIR /tmp/meshviewer
RUN git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /tmp/meshviewer
RUN ls -alh /tmp/meshviewer
2018-04-09 08:21:34 +00:00
2019-11-17 09:37:29 +00:00
RUN npm install gulp@4 -D
RUN yarn && \
yarn global add gulp-cli
2018-04-09 08:21:34 +00:00
2019-11-17 09:37:29 +00:00
# create supernode folders
RUN mkdir -p $(printf "/opt/meshviewer/build/data/tdf%d " {4..7})
2018-04-09 14:05:50 +00:00
2019-11-17 09:37:29 +00:00
# gulp this stuff and delete build environment
RUN gulp && \
cp -r /tmp/meshviewer/build* /opt/meshviewer/build && \
rm -rf /tmp/meshviewer