generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
21 lines (15 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 as build
WORKDIR /concourse-oci-helm-chart-resource
COPY . .
RUN make build
FROM --platform=${BUILDPLATFORM:-linux/amd64} alpine:3.20.5 AS run
# upgrade all installed packages to fix potential CVEs in advance
RUN apk upgrade --no-cache --no-progress \
&& apk del --no-cache --no-progress apk-tools alpine-keys
# Required by concourse resource. Copy explicitly.
COPY --from=build /concourse-oci-helm-chart-resource/bin/check /opt/resource/check
RUN chmod +x /opt/resource/check
COPY --from=build /concourse-oci-helm-chart-resource/bin/in /opt/resource/in
RUN chmod +x /opt/resource/in
COPY --from=build /concourse-oci-helm-chart-resource/bin/out /opt/resource/out
RUN chmod +x /opt/resource/out