Skip to content

Commit 039348e

Browse files
committed
Added Dockerfile for docker image
1 parent 5dd2312 commit 039348e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:10-alpine
2+
3+
COPY . /usr/local/caliper/
4+
5+
ENV MINI_BREAKPAD_SERVER_PORT 8080
6+
7+
RUN apk add --no-cache -q git && cd /usr/local/caliper && npm install && ./node_modules/.bin/grunt && npm cache clean --force
8+
9+
RUN chmod 755 /usr/local/caliper/bin/caliper
10+
11+
EXPOSE 8080
12+
VOLUME ["/usr/local/caliper/pool"]
13+
14+
WORKDIR /usr/local/caliper
15+
CMD ["/usr/local/caliper/bin/caliper"]

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ This intends to be a simple server for crash reports sent by
1818

1919
## Run
2020

21+
### Using Docker
22+
23+
You can use Dockerfile provided by the repository to build and run server in Docker
24+
25+
### Directly
26+
2127
* `npm install .` -- if this fails make sure you have node-gyp setup correctly
2228
* `grunt`
2329
* Put your breakpad symbols under `pool/symbols/PDBNAME/PDBUNIQUEIDENTIFIER/PDBNAMEASSYM`

0 commit comments

Comments
 (0)