Skip to content

Commit 460555c

Browse files
committed
Add BTP CLI to Dockerfile
1 parent 61accbf commit 460555c

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source=https://github.com/SAP/devops-docker-cf-cl
44
LABEL org.opencontainers.image.description="An image for the cf cli"
55
LABEL 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
1010
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
@@ -19,10 +19,14 @@ RUN apt-get update && \
1919
# add group & user
2020
ARG USER_HOME=/home/piper
2121
RUN 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+
RUN curl --location --silent "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx -C /usr/local/bin && \
2425
cf --version
2526

27+
RUN curl https://cli.btp.cloud.sap/btpcli-install.sh | bash && \
28+
btp --version
29+
2630
USER piper
2731
WORKDIR ${USER_HOME}
2832

0 commit comments

Comments
 (0)