Skip to content

Commit 4b56037

Browse files
committed
added INSTALL_DIR as ARG
1 parent 5133cd4 commit 4b56037

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ ARG USER_HOME=/home/piper
2121
RUN addgroup -gid 1000 piper && \
2222
useradd piper --uid 1000 --gid 1000 --shell /bin/bash --home-dir "${USER_HOME}" --create-home
2323

24-
RUN curl --location --silent "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=v8&source=github" | tar -zx -C /usr/local/bin && \
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}" && \
2526
cf --version
2627

27-
RUN curl https://cli.btp.cloud.sap/btpcli-install.sh | bash -s -- -o /usr/local/bin -v latest && \
28+
RUN curl https://cli.btp.cloud.sap/btpcli-install.sh | bash -s -- -o "${INSTALL_DIR}" -v latest && \
2829
btp --version
2930

3031
USER piper

0 commit comments

Comments
 (0)