build on start

This commit is contained in:
stebifan 2018-04-10 22:04:51 +02:00
parent 2425bf9cd2
commit 79fb223a65
2 changed files with 7 additions and 3 deletions

View File

@ -15,10 +15,10 @@ RUN npm install --global grunt-cli && \
gem install --no-rdoc --no-ri compass gem install --no-rdoc --no-ri compass
# Build Meshviewer # Build Meshviewer
RUN git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /opt/meshviewer/ #RUN git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /opt/meshviewer/
WORKDIR /opt/meshviewer WORKDIR /opt/meshviewer
RUN npm install gulp -D && \ #RUN npm install gulp -D && \
yarn && \ yarn && \
yarn global add gulp-cli yarn global add gulp-cli

View File

@ -1,4 +1,8 @@
#!/bin/sh #!/bin/sh
cd /opt/meshviewer cd /opt/meshviewer
git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /opt/meshviewer/
npm install gulp -D yarn
yarn global add gulp-cli
gulp gulp
ln -s /opt/meshviewer/build/index.html /opt/meshviewer/index.html ln -s /opt/meshviewer/build/index.html /opt/meshviewer/index.html
exit 0