1 | FROM node:12-slim
|
2 |
|
3 | MAINTAINER Orta Therox
|
4 |
|
5 | LABEL "com.github.actions.name"="Danger JS Action"
|
6 | LABEL "com.github.actions.description"="Runs JavaScript/TypeScript Dangerfiles"
|
7 | LABEL "com.github.actions.icon"="zap"
|
8 | LABEL "com.github.actions.color"="blue"
|
9 |
|
10 | RUN mkdir -p /usr/src/danger
|
11 | COPY . /usr/src/danger
|
12 | RUN cd /usr/src/danger && \
|
13 | yarn && \
|
14 | yarn run build:fast && \
|
15 | chmod +x distribution/commands/danger.js && \
|
16 | ln -s $(pwd)/distribution/commands/danger.js /usr/bin/danger
|
17 |
|
18 | ENTRYPOINT ["danger", "ci"]
|