Skip to content

Commit

Permalink
Use Distroless as base image
Browse files Browse the repository at this point in the history
Signed-off-by: yankay <[email protected]>
  • Loading branch information
yankay committed Dec 23, 2021
1 parent 6927953 commit f24e023
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
7 changes: 5 additions & 2 deletions Dockerfile-release.amd64
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# base image source: https://git.k8s.io/release/images/build/debian-base
FROM --platform=linux/amd64 k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0
FROM --platform=linux/amd64 busybox:1.34.1 as source
FROM --platform=linux/amd64 gcr.io/distroless/base-debian11

COPY --from=source /bin/sh /bin/sh
COPY --from=source /bin/mkdir /bin/mkdir

ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile-release.arm64
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# base image source: https://git.k8s.io/release/images/build/debian-base
FROM --platform=linux/arm64 k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0
FROM --platform=linux/arm64 busybox:1.34.1 as source
FROM --platform=linux/arm64 gcr.io/distroless/base-debian11

COPY --from=source /bin/sh /bin/sh
COPY --from=source /bin/mkdir /bin/mkdir

ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile-release.ppc64le
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# base image source: https://git.k8s.io/release/images/build/debian-base
FROM --platform=linux/ppc64le k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0
FROM --platform=linux/ppc64le busybox:1.34.1 as source
FROM --platform=linux/ppc64le gcr.io/distroless/base-debian11

COPY --from=source /bin/sh /bin/sh
COPY --from=source /bin/mkdir /bin/mkdir


ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile-release.s390x
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# base image source: https://git.k8s.io/release/images/build/debian-base
FROM --platform=linux/s390x k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0
FROM --platform=linux/s390x busybox:1.34.1 as source
FROM --platform=linux/s390x gcr.io/distroless/base-debian11

COPY --from=source /bin/sh /bin/sh
COPY --from=source /bin/mkdir /bin/mkdir


ADD etcd /usr/local/bin/
ADD etcdctl /usr/local/bin/
Expand Down

0 comments on commit f24e023

Please sign in to comment.