From 4f0f78002ea76c43f84ce13bb324830eb38a63f0 Mon Sep 17 00:00:00 2001 From: Jason S Fillman <6155956+jsfillman@users.noreply.github.com> Date: Mon, 6 May 2024 21:04:15 -0700 Subject: [PATCH] Create Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1b98200 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +# First stage: download and extract the busybox binary +FROM alpine as builder +RUN apk add --no-cache wget +RUN wget -O busybox https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-x86_64 && \ + chmod +x busybox + +# Second stage: create the minimal image +FROM scratch +COPY --from=builder /busybox /busybox + +# Run the sleep command indefinitely +CMD ["/busybox", "sleep", "infinity"]