diff --git a/Dockerfile b/Dockerfile index dfe3a8fe..17ee5a82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN touch ~/.bashrc && hcp --autocomplete-install CMD ["/bin/bash"] ## DOCKERHUB DOCKERFILE ## -FROM alpine:3.19 as default +FROM alpine:3.19 as release ARG BIN_NAME ARG NAME=hcp @@ -32,12 +32,13 @@ LABEL name="HCP CLI" \ summary="The hcp CLI allows interaction with the HashiCorp Cloud Platform." \ description="The hcp CLI allows interaction with the HashiCorp Cloud Platform using the command-line." -COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/ +COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /bin/hcp +RUN ls /bin RUN apk --no-cache upgrade && apk --no-cache add \ bash \ curl \ jq \ nano \ vim -RUN touch ~/.bashrc && hcp --autocomplete-install +RUN touch ~/.bashrc && ./bin/hcp --autocomplete-install CMD ["/bin/bash"]