Skip to content

Commit

Permalink
Move to bci-busybox instead of scratch
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <mbuil@suse.com>
  • Loading branch information
manuelbuil committed Mar 5, 2024
1 parent a2d1bb1 commit b36616c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ARG BCI_IMAGE=registry.suse.com/bci/bci-busybox
ARG GO_IMAGE=rancher/hardened-build-base:v1.20.14b1
ARG ARCH="amd64"
FROM ${BCI_IMAGE} as bci
FROM ${GO_IMAGE} as base-builder
# setup required packages
RUN set -x && \
Expand Down Expand Up @@ -29,6 +31,6 @@ RUN if [ "${ARCH}" != "s390x" || "${ARCH}" != "arm64" ]; then \
RUN install -s bin/* /usr/local/bin
RUN coredns --version

FROM scratch as coredns
FROM bci as coredns
COPY --from=coredns-builder /usr/local/bin/coredns /coredns
ENTRYPOINT ["/coredns"]

0 comments on commit b36616c

Please sign in to comment.