This commit is contained in:
stebifan 2018-04-08 10:49:29 +02:00
parent f07bcc79cc
commit 1baf8dea57
2 changed files with 15 additions and 8 deletions

View File

@ -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"]
CMD ["/start.sh"]

7
start.sh Normal file
View File

@ -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