From 1baf8dea576f63a3e0748ebe8a7a06cba47e6b3a Mon Sep 17 00:00:00 2001 From: stebifan Date: Sun, 8 Apr 2018 10:49:29 +0200 Subject: [PATCH] test --- Dockerfile | 16 ++++++++-------- start.sh | 7 +++++++ 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 start.sh diff --git a/Dockerfile b/Dockerfile index 9f189cd..362a90b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ FROM node:latest -RUN git clone https://github.com/ffrgb/meshviewer.git /opt/meshviewer/ -WORKDIR /opt/meshviewer -RUN npm install gulp -D -RUN yarn -RUN yarn global add gulp-cli -RUN gulp - +#RUN git clone https://github.com/ffrgb/meshviewer.git /opt/meshviewer/ +#WORKDIR /opt/meshviewer +#RUN npm install gulp -D +#RUN yarn +#RUN yarn global add gulp-cli +#RUN gulp +COPY start.sh /start.sh VOLUME /opt/meshviewer/data -ENTRYPOINT ["top"] \ No newline at end of file +CMD ["/start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..9d109df --- /dev/null +++ b/start.sh @@ -0,0 +1,7 @@ +#!/bin/sh +git clone https://github.com/ffrgb/meshviewer.git /opt/meshviewer/ +cd /opt/meshviewer +npm install gulp -D +yarn +yarn global add gulp-cli +gulp \ No newline at end of file