forked from vmpowerio/chartjs-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (21 loc) · 692 Bytes
/
Dockerfile
File metadata and controls
21 lines (21 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM node:5
RUN apt-get update
RUN apt-get install libcairo2-dev libpango1.0-dev libgif-dev libjpeg62-turbo-dev build-essential g++ -y
# Fix bug https://github.com/npm/npm/issues/9863
RUN cd $(npm root -g)/npm \
&& npm install fs-extra \
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js
RUN npm install -g grunt-cli mocha-cli
RUN npm install chart.js@"<=2.4.*"
# Output debug logs in test output
ENV DEBUG=chartjs-node*
# FILES FOR BUILD
ADD ./test ./test
ADD Gruntfile.js ./Gruntfile.js
ADD ./package.json ./package.json
ADD ./index.js ./index.js
ADD ./.jshintrc ./.jshintrc
ADD ./.jscsrc ./.jscsrc
# END FILES FOR BUILD
RUN npm install
CMD grunt test