generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
22 lines (16 loc) · 826 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23 AS build
WORKDIR /concourse-oci-helm-chart-resource
COPY . .
RUN make build
FROM --platform=${BUILDPLATFORM:-linux/amd64} alpine:3.21.3 AS run
# upgrade all installed packages to fix potential CVEs in advance
RUN apk upgrade --no-cache --no-progress \
&& apk add --no-cache --no-progress --upgrade ca-certificates \
&& 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