27 lines
508 B
Docker
27 lines
508 B
Docker
ARG ALPINE_VERSION=3
|
|
FROM alpine:$ALPINE_VERSION
|
|
|
|
RUN addgroup -g 1000 user \
|
|
&& adduser \
|
|
--disabled-password \
|
|
--gecos "" \
|
|
--ingroup "user" \
|
|
--uid 1000 \
|
|
"user"
|
|
|
|
RUN apk add --update --no-cache \
|
|
ca-certificates \
|
|
curl \
|
|
bash \
|
|
tar \
|
|
jq \
|
|
git \
|
|
openssh-client
|
|
|
|
ARG HELM_VERSION=3.10.0
|
|
RUN curl -sSL https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz | tar xz \
|
|
&& cp linux-amd64/helm /usr/local/bin/helm
|
|
|
|
USER 1000
|
|
COPY entrypoint.sh /
|
|
ENTRYPOINT ["/entrypoint.sh"]
|