From 79fb223a6537c5ed19dd9c52760feea8d5fae881 Mon Sep 17 00:00:00 2001 From: stebifan Date: Tue, 10 Apr 2018 22:04:51 +0200 Subject: [PATCH] build on start --- Dockerfile | 4 ++-- start.sh | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6d15b7..1168bee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,10 +15,10 @@ RUN npm install --global grunt-cli && \ gem install --no-rdoc --no-ri compass # 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 -RUN npm install gulp -D && \ +#RUN npm install gulp -D && \ yarn && \ yarn global add gulp-cli diff --git a/start.sh b/start.sh index a44a68c..d89e4e7 100644 --- a/start.sh +++ b/start.sh @@ -1,4 +1,8 @@ #!/bin/sh 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 -ln -s /opt/meshviewer/build/index.html /opt/meshviewer/index.html \ No newline at end of file +ln -s /opt/meshviewer/build/index.html /opt/meshviewer/index.html +exit 0 \ No newline at end of file