Skip to content

Commit

Permalink
switch to bci base image (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksn authored Oct 11, 2022
1 parent 8a66e8c commit 0c36185
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG UBI_IMAGE=registry.access.redhat.com/ubi7/ubi-minimal:latest
ARG BCI_IMAGE=registry.suse.com/bci/bci-base:latest
ARG GO_IMAGE=rancher/hardened-build-base:v1.17.13b7
FROM ${UBI_IMAGE} as ubi
FROM ${BCI_IMAGE} as bci
FROM ${GO_IMAGE} as builder
# setup required packages
RUN set -x \
Expand Down Expand Up @@ -40,8 +40,6 @@ RUN if [ "${ARCH}" != "s390x" ]; then \
RUN install -s bin/* /usr/local/bin
RUN metrics-server --help

FROM ubi
RUN microdnf update -y && \
rm -rf /var/cache/yum
FROM bci
COPY --from=builder /usr/local/bin/metrics-server /
ENTRYPOINT ["/metrics-server"]

0 comments on commit 0c36185

Please sign in to comment.