meshviewer/Dockerfile
nils 71da7ebd8c
All checks were successful
continuous-integration/drone/push Build is passing
Update stretch build image
2019-12-09 13:24:39 +00:00

22 lines
393 B
Docker

# builder
FROM node:12.13.1-stretch as builder
COPY . /mesh
WORKDIR /mesh
# show versions
RUN node --version && npm --version && yarn --version
# install gulp
RUN npm i gulp-cli -g
RUN npm i gulp -g
# run yarn for prerequisits
RUN yarn
# run gulp to build app
RUN gulp
# build docker container
FROM nginx:1.17.6-alpine as meshviewer
COPY --from=builder /mesh/build /usr/share/nginx/html/