forked from danger/danger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (19 loc) · 785 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ruby:2.7
LABEL "com.github.actions.name"="Danger"
LABEL "com.github.actions.description"="Runs danger in a docker container such as GitHub Actions"
LABEL "com.github.actions.icon"="mic"
LABEL "com.github.actions.color"="purple"
LABEL "repository"="https://github.com/danger/danger"
LABEL "homepage"="https://github.com/danger/danger"
LABEL "maintainer"="Rishabh Tayal <[email protected]>"
LABEL "maintainer"="Orta Therox"
RUN apt-get update -qq && apt-get install -y build-essential p7zip unzip
# See https://github.com/actions/runner/issues/2033
RUN git config --system --add safe.directory /github/workspace
RUN mkdir /myapp
WORKDIR /myapp
COPY . /myapp
RUN gem install bundler
ENV BUNDLE_GEMFILE=/myapp/Gemfile
RUN bundle install
ENTRYPOINT ["bundle", "exec", "danger"]