Skip to content

Commit

Permalink
Refactoring arguments Dockerfile for aws-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroc0d3 committed Mar 7, 2023
1 parent 49fa367 commit 86e2fd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions compose/docker/aws-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG GIT_URL
ARG ALPINE_VERSION=3.17

### Builder ###
FROM python:3.10.10-alpine${ALPINE_VERSION} as builder
FROM python:3.10.10-alpine${ALPINE_VERSION:-3.17} as builder

ARG AWS_CLI_VERSION=2.11.0
RUN apk add --no-cache git unzip groff build-base libffi-dev cmake
Expand All @@ -28,7 +28,7 @@ RUN find /usr/local/aws-cli/v2/current/dist/awscli/data -name completions-1*.jso
RUN find /usr/local/aws-cli/v2/current/dist/awscli/botocore/data -name examples-1.json -delete

### Binary ###
FROM alpine:${ALPINE_VERSION}
FROM alpine:${ALPINE_VERSION:-3.17}

ENV VENDOR="DevOpsCornerId"
ENV AUTHOR="DevOpsCorner.id <support@devopscorner.id>"
Expand Down
4 changes: 2 additions & 2 deletions compose/docker/aws-cli/Dockerfile-Alpine-3.16
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG GIT_URL
ARG ALPINE_VERSION=3.16

### Builder ###
FROM python:3.10.10-alpine${ALPINE_VERSION} as builder
FROM python:3.10.10-alpine${ALPINE_VERSION:-3.16} as builder

ARG AWS_CLI_VERSION=2.11.0
RUN apk add --no-cache git unzip groff build-base libffi-dev cmake
Expand All @@ -28,7 +28,7 @@ RUN find /usr/local/aws-cli/v2/current/dist/awscli/data -name completions-1*.jso
RUN find /usr/local/aws-cli/v2/current/dist/awscli/botocore/data -name examples-1.json -delete

### Binary ###
FROM alpine:${ALPINE_VERSION}
FROM alpine:${ALPINE_VERSION:-3.16}

ENV VENDOR="DevOpsCornerId"
ENV AUTHOR="DevOpsCorner.id <support@devopscorner.id>"
Expand Down
4 changes: 2 additions & 2 deletions compose/docker/aws-cli/Dockerfile-Alpine-3.17
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG GIT_URL
ARG ALPINE_VERSION=3.17

### Builder ###
FROM python:3.10.10-alpine${ALPINE_VERSION} as builder
FROM python:3.10.10-alpine${ALPINE_VERSION:-3.17} as builder

ARG AWS_CLI_VERSION=2.11.0
RUN apk add --no-cache git unzip groff build-base libffi-dev cmake
Expand All @@ -28,7 +28,7 @@ RUN find /usr/local/aws-cli/v2/current/dist/awscli/data -name completions-1*.jso
RUN find /usr/local/aws-cli/v2/current/dist/awscli/botocore/data -name examples-1.json -delete

### Binary ###
FROM alpine:${ALPINE_VERSION}
FROM alpine:${ALPINE_VERSION:-3.17}

ENV VENDOR="DevOpsCornerId"
ENV AUTHOR="DevOpsCorner.id <support@devopscorner.id>"
Expand Down

0 comments on commit 86e2fd7

Please sign in to comment.