Skip to content

Commit a96036a

Browse files
committed
Use busybox from alpine
1 parent 915c856 commit a96036a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

glibc/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ RUN set -x \
2929
fi; \
3030
done
3131

32+
FROM ${ARCH}alpine:latest as alpine
33+
3234
FROM ${ARCH}busybox:glibc
3335
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
3436

37+
# Use the busybox executable from alpine which is generally patched more quickly for vulnerabilities
38+
RUN rm /bin/*
39+
COPY --from=alpine /bin/busybox /bin/
40+
RUN /bin/busybox --install /bin
41+
3542
COPY --from=0 /rootfs /

uclibc/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ RUN set -x \
2828
fi; \
2929
done
3030

31+
FROM ${ARCH}alpine:latest as alpine
32+
3133
FROM ${ARCH}busybox:uclibc
3234
MAINTAINER The Prometheus Authors <prometheus-developers@googlegroups.com>
3335

36+
# Use the busybox executable from alpine which is generally patched more quickly for vulnerabilities
37+
RUN rm /bin/*
38+
COPY --from=alpine /bin/busybox /bin/
39+
RUN /bin/busybox --install /bin
40+
3441
COPY --from=0 /rootfs /

0 commit comments

Comments
 (0)