-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
40 lines (31 loc) · 1009 Bytes
/
Dockerfile
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
34
35
36
37
38
39
40
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS downloader
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /tools
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/*
FROM downloader AS helm
ARG TARGETOS
ARG TARGETARCH
# renovate: datasource=github-releases depName=helm/helm
ARG HELM_VERSION=v3.16.3
RUN curl -fsSL \
https://get.helm.sh/helm-${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz \
| tar -xzf - --strip-components=1 ${TARGETOS}-${TARGETARCH}/helm
FROM --platform=$BUILDPLATFORM debian:bookworm-slim
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
git \
gnupg2 \
ssh \
tini \
&& rm -rf /var/lib/apt/lists/*
COPY --link --chmod=700 --from=helm /tools/helm /usr/local/bin/
# This copies myks binary built by goreleaser
COPY --link myks /usr/local/bin/
WORKDIR /app
ENTRYPOINT ["tini", "--", "myks"]