Skip to content

Commit

Permalink
Build from scratch
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Newman <[email protected]>
  • Loading branch information
liam-verta committed Dec 15, 2022
1 parent 9b33bd6 commit 6910c91
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 49 deletions.
49 changes: 0 additions & 49 deletions alpine-glibc/Dockerfile

This file was deleted.

25 changes: 25 additions & 0 deletions alpine/Dockerfile
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 / /

0 comments on commit 6910c91

Please sign in to comment.