We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 698a652 + 0348dd5 commit f4ac66dCopy full SHA for f4ac66d
Dockerfile
@@ -0,0 +1,14 @@
1
+FROM node:boron
2
+
3
+# Create app directory
4
+RUN mkdir -p /usr/src/app
5
+WORKDIR /usr/src/app
6
7
+# Install app dependencies
8
+COPY package.json /usr/src/app/
9
+RUN npm install
10
11
+# Bundle app source
12
+COPY . /usr/src/app
13
14
+ENTRYPOINT [ "bin/webpagetest" ]
README.md
@@ -20,6 +20,16 @@ $ npm install webpagetest -g
20
$ webpagetest test https://twitter.com/marcelduran
21
```
22
23
+### Docker
24
+#### Build
25
+```bash
26
+$ docker build -t webpagetest-api .
27
+```
28
+#### Run
29
30
+$ docker run -it --rm webpagetest-api -k YOURAPIKEY test https://twitter.com/marcelduran
31
32
33
### Module
34
```javascript
35
var WebPageTest = require('webpagetest');
0 commit comments