File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/SAP/devops-docker-cf-cl
44LABEL org.opencontainers.image.description="An image for the cf cli"
55LABEL org.opencontainers.image.licenses=Apache-2.0
66
7- ENV VERSION 0.1
7+ ENV VERSION= 0.1
88
99# https://github.com/hadolint/hadolint/wiki/DL4006
1010SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
@@ -19,10 +19,15 @@ RUN apt-get update && \
1919# add group & user
2020ARG USER_HOME=/home/piper
2121RUN addgroup -gid 1000 piper && \
22- useradd piper --uid 1000 --gid 1000 --shell /bin/bash --home-dir "${USER_HOME}" --create-home && \
23- curl --location --silent "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx -C /usr/local/bin && \
22+ useradd piper --uid 1000 --gid 1000 --shell /bin/bash --home-dir "${USER_HOME}" --create-home
23+
24+ ARG INSTALL_DIR=/usr/local/bin
25+ RUN curl --location --silent "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx -C "${INSTALL_DIR}" && \
2426 cf --version
2527
28+ RUN curl https://cli.btp.cloud.sap/btpcli-install.sh | bash -s -- -o "${INSTALL_DIR}" -v latest && \
29+ btp --version
30+
2631USER piper
2732WORKDIR ${USER_HOME}
2833
You can’t perform that action at this time.
0 commit comments