-
Notifications
You must be signed in to change notification settings - Fork 488
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 984 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 984 Bytes
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
26
27
28
29
30
31
32
33
FROM ruby:3.2-alpine AS builder
RUN apk add --no-cache build-base
WORKDIR /myapp
COPY . /myapp
ENV BUNDLE_WITHOUT="development:test"
RUN gem install bundler && bundle install
FROM ruby:3.2-alpine
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 <rtayal11@gmail.com>"
LABEL "maintainer"="Orta Therox"
RUN apk add --no-cache git p7zip
# See https://github.com/actions/runner/issues/2033
RUN git config --system --add safe.directory /github/workspace
WORKDIR /myapp
COPY --from=builder /usr/local/bundle /usr/local/bundle
COPY --from=builder /myapp /myapp
ENV BUNDLE_GEMFILE=/myapp/Gemfile
ENV BUNDLE_WITHOUT="development:test"
ENTRYPOINT ["bundle", "exec", "danger"]