-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (30 loc) · 1.27 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
###############################################################################
# Build AWS Cli
###############################################################################
FROM alpine:3.19.1 AS BUILD
# renovate: datasource=github-tags depName=aws/aws-cli extractVersion=(?<version>.*)$
ARG AWS_CLI_VERSION=2.23.1
# Install dependencies
RUN apk add --no-cache --update git build-base libffi-dev cmake python3 py3-pip python3-dev gcompat
# Build AWS Cli
WORKDIR /tmp
RUN git clone --single-branch --depth 1 -b ${AWS_CLI_VERSION} https://github.com/aws/aws-cli.git awscli && \
cd awscli && \
python -m venv venv && \
. venv/bin/activate && \
scripts/installers/make-exe
###############################################################################
# AWS Cli Docker Image
###############################################################################
FROM alpine:3.19.1
LABEL maintainer="Julian Nonino <[email protected]>"
# Install dependencies
RUN apk add --no-cache --update bash groff less jq yq
# Copy AWS Cli zip file
COPY --from=BUILD /tmp/awscli/dist/awscli-exe.zip /tmp/awscli.zip
# Install AWS Cli
RUN unzip -q /tmp/awscli.zip -d /tmp && \
/tmp/aws/install && \
rm -rf /tmp/aws /tmp/awscli.zip
# Setup entrypoint
ENTRYPOINT ["/usr/local/bin/aws"]