File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ FROM projectoss/alpine:3.20.0
33# Install security updates first
44RUN apk update && apk upgrade
55
6- # Install glibc compatibility for AWS CLI v2
7- RUN apk add --no-cache gcompat
8-
96# Install required packages
107RUN apk add --no-cache \
118 ca-certificates \
@@ -19,15 +16,15 @@ RUN apk add --no-cache \
1916 python3 \
2017 py3-pip \
2118 unzip \
22- groff \
23- libc6-compat
19+ groff
20+
21+ # Install AWS CLI v1 using pip (more compatible with Alpine)
22+ RUN pip3 install --break-system-packages --no-cache-dir awscli
2423
25- # Install AWS CLI v2 with glibc compatibility
26- RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
27- && unzip awscliv2.zip \
28- && ./aws/install \
29- && rm -rf aws awscliv2.zip \
30- && aws --version
24+ # Alternative: Install Python packages in virtual environment if needed
25+ # RUN python3 -m venv /opt/venv \
26+ # && /opt/venv/bin/pip install --no-cache-dir boto3 \
27+ # && ln -s /opt/venv/bin/python3 /usr/local/bin/python-venv
3128
3229# Set versions - update these regularly
3330ARG KUBECTL_VERSION="1.30.0"
You can’t perform that action at this time.
0 commit comments