forgot to add files...
This commit is contained in:
parent
78ab3c0796
commit
fa9d990428
@ -1,12 +1,13 @@
|
|||||||
# builder
|
# builder
|
||||||
FROM node:12.12.0-stretch as builder
|
FROM node:12.12.0-stretch as builder
|
||||||
|
COPY . /mesh
|
||||||
|
WORKDIR /mesh
|
||||||
|
|
||||||
# show versions
|
# show versions
|
||||||
RUN node --version && npm --version && yarn --version
|
RUN node --version && npm --version && yarn --version
|
||||||
|
|
||||||
# install gulp
|
# install gulp
|
||||||
RUN npm i gulp-cli
|
RUN npm i gulp-cli
|
||||||
RUN npm i gulp
|
|
||||||
|
|
||||||
# run yarn for prerequisits
|
# run yarn for prerequisits
|
||||||
RUN ls -alh
|
RUN ls -alh
|
||||||
@ -15,7 +16,6 @@ RUN yarn
|
|||||||
# run gulp to build app
|
# run gulp to build app
|
||||||
RUN gulp
|
RUN gulp
|
||||||
|
|
||||||
|
|
||||||
# build docker container
|
# build docker container
|
||||||
FROM nginx:1.17.6-alpine as meshviewer
|
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/
|
||||||
|
Loading…
Reference in New Issue
Block a user