mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
- Add Dockerfile for js build image - Wire up dockerized-ui build to the makefile. - Removed unused dev tools from package.json/gulp
20 lines
396 B
Docker
20 lines
396 B
Docker
FROM mhart/alpine-node
|
|
|
|
WORKDIR /home/weave
|
|
|
|
# build tool
|
|
RUN npm install -g gulp
|
|
|
|
# install app and build dependencies
|
|
ADD package.json /home/weave/
|
|
RUN npm install
|
|
|
|
ADD gulpfile.js /home/weave/
|
|
|
|
# run container via
|
|
#
|
|
# `docker run -v $GOPATH/src/github.com/weaveworks/scope/client:/app weaveworks/scope-build`
|
|
#
|
|
# after the container is run, bundled app should be in ./dist/ dir
|
|
CMD gulp build
|