diff --git a/releases/capi/cloud-controller.Dockerfile b/releases/capi/cloud-controller.Dockerfile index 8f41a43..474ebb3 100644 --- a/releases/capi/cloud-controller.Dockerfile +++ b/releases/capi/cloud-controller.Dockerfile @@ -1,12 +1,14 @@ FROM alpine:latest AS builder +ARG TARGETARCH + RUN apk add --no-cache curl COPY --from=storage-cli . /storage-cli WORKDIR /storage-cli RUN STORAGE_CLI_RELEASE_VERSION=$(sed -n 's/.*storage_cli_version="\([^"]*\)".*/\1/p' packaging) && \ - curl https://github.com/cloudfoundry/storage-cli/releases/download/v${STORAGE_CLI_RELEASE_VERSION}/storage-cli-${STORAGE_CLI_RELEASE_VERSION}-linux-amd64 -L -o /usr/local/bin/storage-cli && \ + curl https://github.com/cloudfoundry/storage-cli/releases/download/v${STORAGE_CLI_RELEASE_VERSION}/storage-cli-${STORAGE_CLI_RELEASE_VERSION}-linux-${TARGETARCH} -L -o /usr/local/bin/storage-cli && \ chmod +x /usr/local/bin/storage-cli FROM ruby:4.0.3-slim