Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:5

RUN npm install -g grunt-cli bower

WORKDIR /opt/querybuilder
ADD package.json bower.json /opt/querybuilder/
RUN npm install && bower install --allow-root

ADD . /opt/querybuilder

ENTRYPOINT ["grunt", "test", "default"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ grunt --languages=fr,it
* `grunt serve` to open the example page with automatic build and livereload.
* `grunt doc` to generate the documentation.

#### Build using Docker

In case docker is available following commands can be used to build.

* `docker build . -t querybuilder` to create the base image (needs to be called only once or on package/bower.json changes)
* `docker run --rm -iv$PWD/dist:/opt/querybuilder/dist -v$PWD/src:/opt/querybuilder/src querybuilder` to build the

Its possible to just add explained options to the end of the docker run command.

## License
This library is available under the MIT license.
Expand Down