diff --git a/Dockerfile b/Dockerfile index ceedb08..81c9796 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,19 +20,14 @@ RUN unzip -q dist/awscli-exe.zip RUN aws/install --bin-dir /aws-cli-bin RUN /aws-cli-bin/aws --version -# Reduce image size: remove autocomplete and examples -RUN rm -rf \ - /usr/local/aws-cli/v2/current/dist/aws_completer \ - /usr/local/aws-cli/v2/current/dist/awscli/data/ac.index \ - /usr/local/aws-cli/v2/current/dist/awscli/examples - RUN find /usr/local/aws-cli/v2/current/dist/awscli/data -name completions-1*.json -delete RUN find /usr/local/aws-cli/v2/current/dist/awscli/botocore/data -name examples-1.json -delete FROM alpine:${ALPINE_VERSION} - LABEL org.opencontainers.image.source https://github.com/${AUTHOR}/${IMAGE_NAME} +RUN apk add --no-cache groff + # Install AWS CLI v2 using the binary created in the builder stage COPY --from=builder /usr/local/aws-cli/ /usr/local/aws-cli/ COPY --from=builder /aws-cli-bin/ /usr/local/bin/