meshviewer/Dockerfile

20 lines
369 B
Docker
Raw Normal View History

2019-11-22 23:17:15 +00:00
# builder
FROM node:12.12.0-stretch as builder
# show versions
RUN node --version && npm --version && yarn --version
# install gulp
RUN npm i gulp-cli -g
# run yarn for prerequisits
RUN yarn
# run gulp to build app
2019-11-22 23:27:23 +00:00
RUN /usr/local/bin/gulp
2019-11-22 23:17:15 +00:00
# build docker container
FROM nginx:1.17.6-alpine as meshviewer
COPY --from=builder /drone/src/build /usr/share/nginx/html/