Skip to content

Commit

Permalink
Use busybox from alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-verta committed Oct 19, 2022
1 parent 915c856 commit a96036a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions glibc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ RUN set -x \
fi; \
done

FROM ${ARCH}alpine:latest as alpine

FROM ${ARCH}busybox:glibc
MAINTAINER The Prometheus Authors <[email protected]>

# Use the busybox executable from alpine which is generally patched more quickly for vulnerabilities
RUN rm /bin/*
COPY --from=alpine /bin/busybox /bin/
RUN /bin/busybox --install /bin

COPY --from=0 /rootfs /
7 changes: 7 additions & 0 deletions uclibc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ RUN set -x \
fi; \
done

FROM ${ARCH}alpine:latest as alpine

FROM ${ARCH}busybox:uclibc
MAINTAINER The Prometheus Authors <[email protected]>

# Use the busybox executable from alpine which is generally patched more quickly for vulnerabilities
RUN rm /bin/*
COPY --from=alpine /bin/busybox /bin/
RUN /bin/busybox --install /bin

COPY --from=0 /rootfs /

0 comments on commit a96036a

Please sign in to comment.