forked from gtsopour/awscli-kubectl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 867 Bytes
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM --platform=$BUILDPLATFORM alpine:latest
LABEL org.opencontainers.image.authors="me@jsilkens.be"
ARG SIGNING_HELPER_VERSION=1.3.0
ARG TARGETARCH
RUN apk add --no-cache aws-cli curl kubectl docker-credential-ecr-login && \
if [ "$TARGETARCH" = "amd64" ]; then \
HELPER_URL="https://rolesanywhere.amazonaws.com/releases/$SIGNING_HELPER_VERSION/X86_64/Linux/aws_signing_helper"; \
elif [ "$TARGETARCH" = "arm64" ]; then \
HELPER_URL="https://rolesanywhere.amazonaws.com/releases/$SIGNING_HELPER_VERSION/Aarch64/Linux/aws_signing_helper"; \
else \
echo "Unsupported architecture: $TARGETARCH"; exit 1; \
fi && \
curl -fsSL -o /usr/local/bin/aws_signing_helper "$HELPER_URL" && \
chmod +x /usr/local/bin/aws_signing_helper && \
echo "AWS Signing Helper installed successfully at /usr/local/bin/aws_signing_helper"