diff --git a/Dockerfile b/Dockerfile index f5bfe33..90565fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,26 @@ -FROM devthefuture/init-container-toolbox:latest@sha256:9511484e313d051713935aa32e91801781b9074ab78ea60f116f9e0dc61a3541 +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 \ + openssh-client -USER 0 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 +USER 1000 COPY entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"]