Skip to content

Commit b6e7aed

Browse files
authored
fix(dockerfile): fix apk add command to support getting awscli for linux/s390x via pip (#1323)
Signed-off-by: Cheng Fang <cfang@redhat.com>
1 parent 9c26131 commit b6e7aed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ FROM alpine:3.22
2020

2121
RUN apk update && \
2222
apk upgrade && \
23-
apk add ca-certificates git openssh-client aws-cli tini gpg gpg-agent && \
23+
apk add --no-cache ca-certificates git openssh-client tini gpg gpg-agent && \
24+
(apk add --no-cache aws-cli || (apk add --no-cache python3 py3-pip && pip3 install --no-cache-dir --break-system-packages awscli)) && \
2425
rm -rf /var/cache/apk/*
2526

2627
RUN mkdir -p /usr/local/bin

0 commit comments

Comments
 (0)