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