Skip to content

Commit

Permalink
chore: add cli to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Nov 13, 2024
1 parent 7358257 commit 7a2f039
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
##
FROM --platform=$BUILDPLATFORM goreleaser/goreleaser:v2.4.4 AS build

ARG TARGETOS TARGETARCH
ARG TARGETOS
ARG TARGETARCH
ARG BUILD_WITH_COVERAGE
ARG BUILD_SNAPSHOT=true
ARG SKIP_LICENSES_REPORT=false
Expand All @@ -21,6 +22,18 @@ FROM alpine:3.20

LABEL "steadybit.com.discovery-disabled"="true"

RUN apk --no-cache add curl
RUN if [ "$TARGETARCH" = "arm64" ] ; then \
echo "Downloading awscli for arm64"; \
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"; \
else \
echo "Downloading awscli for amd64"; \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"; \
fi
RUN unzip awscliv2.zip
RUN ./aws/install
RUN aws --version

ARG USERNAME=steadybit
ARG USER_UID=10000

Expand Down

0 comments on commit 7a2f039

Please sign in to comment.