-
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.
Signed-off-by: Liam Newman <[email protected]>
- Loading branch information
1 parent
9b33bd6
commit 6910c91
Showing
2 changed files
with
25 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ARG ARCH="" | ||
FROM ${ARCH}alpine:latest as alpine | ||
|
||
RUN apk upgrade -U && \ | ||
apk add tzdata ca-certificates busybox-static | ||
|
||
# remove extra package | ||
RUN apk del libc-utils | ||
|
||
# remove apk files and directories | ||
RUN apk del apk-tools && \ | ||
find / -name apk -prune -exec rm -rf {} ";" | ||
|
||
# Use the busybox.static to avoid dynamic library dependencies. | ||
RUN mv /bin/busybox.static /bin/busybox && \ | ||
/bin/busybox --install -s /bin | ||
|
||
# remove extraneous folders | ||
RUN rm -rf media mnt opt run srv | ||
|
||
FROM scratch | ||
MAINTAINER The Prometheus Authors <[email protected]> | ||
|
||
COPY --from=alpine / / | ||
|