Skip to content

Instantly share code, notes, and snippets.

@medvid
Created June 7, 2020 11:35
Show Gist options
  • Save medvid/5a6dfac314ec30f2575df332a6ac1cca to your computer and use it in GitHub Desktop.
Save medvid/5a6dfac314ec30f2575df332a6ac1cca to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04 AS base
RUN apt -y update && apt install -y busybox-static
FROM scratch as stage2
COPY --from=base /bin/busybox /usr/bin/busybox
SHELL ["/usr/bin/busybox", "sh", "-c"]
RUN /usr/bin/busybox ln -s usr/bin /bin
RUN /usr/bin/busybox ln -s busybox /usr/bin/ls
RUN /usr/bin/ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment