From 468d6d1aaa0a788ab4faf225b8bbdf06c89d1036 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 1 Mar 2024 10:54:06 -0800 Subject: [PATCH] Dockerfile fixes --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"]