diff --git a/Dockerfile-debian b/Dockerfile-debian index 0b39d6e56..47cad8a58 100644 --- a/Dockerfile-debian +++ b/Dockerfile-debian @@ -1,19 +1,19 @@ -FROM node:24.18.0-trixie-slim +FROM octopusdeploy/dhi-node:24-debian13-dev@sha256:fe091924af637178000e4eb34caec858c935c5264a55ada03088890c7b6a8de2 as build ARG TARGETPLATFORM -RUN apt update \ - && apt -y install \ - apt-transport-https \ - bash \ - busybox \ - ca-certificates \ - curl \ - git \ - && ln -s /bin/busybox /usr/bin/[[ \ - && curl -L "https://github.com/jqlang/jq/releases/download/jq-1.8.2/jq-linux-$(dpkg --print-architecture)" -o /usr/local/bin/jq \ - && chmod +x /usr/local/bin/jq -RUN npm upgrade -g npm -COPY --from=mikefarah/yq:4.53.3 /usr/bin/yq /usr/local/bin/yq -ADD --chmod=775 https://dl.k8s.io/release/v1.36.1/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl +#RUN apt update \ +# && apt -y install \ +# apt-transport-https \ +# bash \ +# busybox \ +# ca-certificates \ +# curl \ +# git \ +# && ln -s /bin/busybox /usr/bin/[[ \ +# && curl -L "https://github.com/jqlang/jq/releases/download/jq-1.8.2/jq-linux-$(dpkg --print-architecture)" -o /usr/local/bin/jq \ +# && chmod +x /usr/local/bin/jq +#RUN npm upgrade -g npm +#COPY --from=mikefarah/yq:4.53.3 /usr/bin/yq /usr/local/bin/yq +#ADD --chmod=775 https://dl.k8s.io/release/v1.36.1/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl WORKDIR /cf-cli COPY package.json yarn.lock check-version.js run-check-version.js /cf-cli/ RUN yarn install --prod --frozen-lockfile && \ @@ -22,8 +22,14 @@ COPY . /cf-cli RUN yarn generate-completion #purpose of security -RUN npm -g uninstall npm +#RUN npm -g uninstall npm +FROM octopusdeploy/dhi-node:24-debian_cf-cli-node-24-debian-13@sha256:ba88e3250a5efc62df36d95e2305a5811a1b1671f9aa65fcbaeb664bb8c371cd as base +RUN busybox --install +COPY --chmod=755 --from=build /cf-cli /cf-cli +WORKDIR /cf-cli +USER root +COPY --chmod=775 --from=octopusdeploy/dhi-kubectl:1.36-debian13 /usr/local/bin/kubectl /usr/local/bin/kubectl RUN ln -s $(pwd)/lib/interface/cli/codefresh /usr/local/bin/codefresh RUN codefresh components update --location components diff --git a/package.json b/package.json index 5f3c842d9..d7bfe993a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "1.2.5", + "version": "1.2.6", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,