diff --git a/Dockerfile b/Dockerfile index b54c3bd..fe5272e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ # builder FROM node:12.12.0-stretch as builder +COPY . /mesh +WORKDIR /mesh # show versions RUN node --version && npm --version && yarn --version # install gulp RUN npm i gulp-cli -RUN npm i gulp # run yarn for prerequisits RUN ls -alh @@ -15,7 +16,6 @@ RUN yarn # run gulp to build app RUN gulp - # build docker container FROM nginx:1.17.6-alpine as meshviewer -COPY --from=builder /drone/src/build /usr/share/nginx/html/ +COPY --from=builder /mesh/build /usr/share/nginx/html/