Skip to content

Commit

Permalink
Dockerfile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Mar 1, 2024
1 parent f860599 commit f984a8a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,12 +32,15 @@ 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 -lh /bin
RUN apk --no-cache upgrade && apk --no-cache add \
bash \
curl \
jq \
nano \
vim
RUN touch ~/.bashrc && hcp --autocomplete-install
RUN touch ~/.bashrc
RUN echo $PATH
# RUN hcp --autocomplete-install
CMD ["/bin/bash"]

0 comments on commit f984a8a

Please sign in to comment.