We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4328a49 commit 6973183Copy full SHA for 6973183
.npmignore
@@ -3,3 +3,4 @@ test/
3
.project
4
.gitmodules
5
.travis.yml
6
+Dockerfile
Dockerfile
@@ -0,0 +1,20 @@
1
+FROM freewil/bitcoin-testnet-box
2
+MAINTAINER Sean Lavine <[email protected]>
+
+# install node.js (sudo for bash needed?)
+USER root
+RUN apt-get install --yes curl
7
+RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash -
8
+RUN apt-get install --yes nodejs
9
10
+# set permissions for tester user on project
11
+ADD . /home/tester/node-bitcoin
12
+RUN chown --recursive tester:tester /home/tester/node-bitcoin
13
14
+# install module dependencies
15
+USER tester
16
+WORKDIR /home/tester/node-bitcoin
17
+RUN npm install
18
19
+# run test suite
20
+CMD ["npm", "test"]
0 commit comments