-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 723 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
ARG base_image=alpine
ARG builder_image=golang
FROM ${builder_image} as builder
ADD . /go/src/github.com/cloudfoundry-community/github-pr-instances-resource
WORKDIR /go/src/github.com/cloudfoundry-community/github-pr-instances-resource
RUN curl -sL https://taskfile.dev/install.sh | sh
RUN ./bin/task build
FROM ruby:3-alpine as resource
RUN apk add --update --no-cache \
git \
git-lfs \
openssh
COPY scripts/askpass.sh /usr/local/bin/askpass.sh
COPY --from=builder /go/src/github.com/cloudfoundry-community/github-pr-instances-resource/build /opt/resource
COPY check_cuckoo.rb /opt/resource/check
RUN chmod +x /opt/resource/*
RUN gem install octokit faraday-retry
FROM resource
LABEL MAINTAINER=samrees