Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions Dockerfile-debian
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "1.2.5",
"version": "1.2.6",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down