Skip to content

Commit d180dc3

Browse files
author
Sean Sundberg
authored
Reduces image size by cleaning up package cache (#2)
Signed-off-by: Sean Sundberg <seansund@us.ibm.com>
1 parent 3a055a6 commit d180dc3

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/docker-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
with:
113113
# list of Docker images to use as base name for tags
114114
images: |
115-
quay.io/cloudnativetoolkit/cli-tools-core
115+
quay.io/cloudnativetoolkit/cli-tools-aws
116116
# Docker tags based on the following events/attributes
117117
tags: |
118118
type=raw,value=${{ steps.variables.outputs.terraform }}-${{ matrix.base }}

Dockerfile-alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG TERRAFORM_VERSION=v1.2
2-
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v1.0.0-alpine
2+
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v1.0.1-alpine
33

44
ARG TARGETPLATFORM
55

@@ -9,5 +9,5 @@ RUN sudo apk add --no-cache \
99
py3-pip \
1010
&& sudo pip3 install --upgrade pip \
1111
&& sudo pip3 install awscli \
12-
&& rm -rf /var/cache/apk/* \
12+
&& sudo rm -rf /var/cache/apk/* \
1313
&& aws --version

Dockerfile-fedora

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG TERRAFORM_VERSION=v1.2
2-
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v1.0.0-fedora
2+
FROM quay.io/cloudnativetoolkit/cli-tools-core:${TERRAFORM_VERSION}-v1.0.1-fedora
33

44
ARG TARGETPLATFORM
55

@@ -9,5 +9,5 @@ RUN sudo dnf install -y \
99
python3-pip \
1010
&& sudo pip3 install --upgrade pip \
1111
&& sudo pip3 install awscli \
12-
&& dnf clean all \
12+
&& sudo dnf clean all \
1313
&& aws --version

0 commit comments

Comments
 (0)