images: Install coreutils package

The current kubernetes-entrypoint image [0] is missing the echo binary,
resulting in errors:

  Entrypoint ERROR: 2019/10/14 18:34:58 kubernetes-entrypoint.go:38:
  Cannot execute command: exec: "echo": executable file not found

This change installs the coreutils package to the kubernetes-entrypoint
image in order to make the echo binary available.

Change-Id: I9d997abb7d204f5903281784205bb19a8d2102a8
Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
Drew Walters 2019-10-14 19:29:37 +00:00
parent 77fb8d107e
commit f3ccc07e86
1 changed files with 4 additions and 0 deletions

View File

@ -14,5 +14,9 @@ RUN make ${MAKE_TARGET}
FROM ${RELEASE_IMAGE} as release
COPY --from=builder /usr/src/kubernetes-entrypoint/bin/kubernetes-entrypoint /usr/local/bin/kubernetes-entrypoint
RUN apt-get update
RUN apt-get install -y --no-install-recommends coreutils
USER 65534
ENTRYPOINT [ "/usr/local/bin/kubernetes-entrypoint" ]