diff --git a/Dockerfile b/Dockerfile index d12664f..6954b16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ -FROM alpine:3.15.4 +FROM debian:bullseye-slim +ARG KUBE_VERSION="v1.23.3" + +ARG HELM_VERSION="3.0.0" + +FROM python:3.8.15-slim-bullseye + ARG KUBE_VERSION="v1.23.3" ARG HELM_VERSION="3.0.0" @@ -9,15 +15,7 @@ RUN echo "HELM_VERSION is set to: ${HELM_VERSION}" ENV FILENAME="helm-v${HELM_VERSION}-linux-amd64.tar.gz" -RUN apk add --update ca-certificates && update-ca-certificates \ - && apk add --update curl \ - && apk add bash \ - && apk add jq \ - && apk add python3 \ - && apk add make \ - && apk add git \ - && apk add openssl \ - && apk add py3-pip \ +RUN apt-get update -y && apt-get install curl make jq git openssl -y \ && pip install yq \ && curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \ && chmod +x /usr/local/bin/kubectl \ @@ -25,10 +23,10 @@ RUN apk add --update ca-certificates && update-ca-certificates \ && tar -zxvf /tmp/${FILENAME} -C /tmp \ && mv /tmp/linux-amd64/helm /bin/helm \ # Cleanup uncessary files - && rm /var/cache/apk/* \ + && rm -rf /var/lib/apt/lists/* \ && rm -rf /tmp/* RUN bash -c 'if [[ "${HELM_VERSION}" == 2* ]]; then helm init --client-only; else echo "using helm3, no need to initialize helm"; fi' WORKDIR /config -CMD bash +CMD bash \ No newline at end of file diff --git a/codefresh.yaml b/codefresh.yaml index db8ea23..79b4533 100644 --- a/codefresh.yaml +++ b/codefresh.yaml @@ -2,7 +2,7 @@ version: '1.0' steps: define_the_versions_list: - image: alpine + image: debian commands: - |- cat < helmVersionsList