-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67a9d1a
commit 703a099
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,17 +30,16 @@ RUN set -x \ | |
done | ||
|
||
FROM ${ARCH}alpine:latest as alpine | ||
RUN apk add busybox-static | ||
|
||
FROM ${ARCH}busybox:glibc | ||
MAINTAINER The Prometheus Authors <[email protected]> | ||
|
||
# Use the busybox executable from alpine which is generally patched more quickly for vulnerabilities | ||
COPY --from=alpine /bin/busybox /tmp/busybox | ||
COPY --from=alpine /lib/ld-musl* /lib/libc.musl* /lib/ | ||
# Use the busybox.static to avoid dynamic library dependencies. | ||
COPY --from=alpine /bin/busybox.static /tmp/busybox | ||
|
||
RUN cd /lib && \ | ||
ln -sf $(ls ld-musl*) $(ls libc.musl*) && \ | ||
rm /bin/* && \ | ||
RUN rm /bin/* && \ | ||
/tmp/busybox --install /bin && \ | ||
mv /tmp/busybox /bin/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,17 +29,16 @@ RUN set -x \ | |
done | ||
|
||
FROM ${ARCH}alpine:latest as alpine | ||
RUN apk add busybox-static | ||
|
||
FROM ${ARCH}busybox:uclibc | ||
MAINTAINER The Prometheus Authors <[email protected]> | ||
|
||
# Use the busybox executable from alpine which is generally patched more quickly for vulnerabilities | ||
COPY --from=alpine /bin/busybox /tmp/busybox | ||
COPY --from=alpine /lib/ld-musl* /lib/libc.musl* /lib/ | ||
# Use the busybox.static to avoid dynamic library dependencies. | ||
COPY --from=alpine /bin/busybox.static /tmp/busybox | ||
|
||
RUN cd /lib && \ | ||
ln -sf $(ls ld-musl*) $(ls libc.musl*) && \ | ||
rm /bin/* && \ | ||
RUN rm /bin/* && \ | ||
/tmp/busybox --install /bin && \ | ||
mv /tmp/busybox /bin/ | ||
|
||
|