-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 718 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (19 loc) · 718 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
FROM --platform=$BUILDPLATFORM golang:1.25-bookworm AS build
WORKDIR /usr/src/app
ARG TARGETOS TARGETARCH
COPY . .
RUN ./scripts/install_helm.sh $TARGETARCH /usr/bin
RUN ./scripts/install_kustomize.sh $TARGETARCH /usr/bin
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
GOOS=$TARGETOS GOARCH=$TARGETARCH make
FROM debian:bookworm
RUN apt-get update && \
apt-get install -y --no-install-recommends \
jq \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /usr/src/app/yfg /usr/bin/yfg
COPY --from=build /usr/bin/helm /usr/bin/helm
COPY --from=build /usr/bin/kustomize /usr/bin/kustomize
ENTRYPOINT ["/usr/bin/yfg", "generate"]