https://github.com/necrose99/gentoo-docker-images/blob/master/custom-alpine-builder/README.md
233
FROM alpine:latest
RUN apk add squashfs-tools p7zip xz tar bzip2
## from gentoo's ----
{ARG BOOTSTRAP
FROM ${BOOTSTRAP:-alpine:3.7} as builder
WORKDIR /gentoo } https://raw.githubusercontent.com/gentoo/gentoo-docker-images/master/stage3.Dockerfile
I needed a multistage builder with just a few extra tools ie unzip /unsquash craps.
Like Live Cd iso's etc..
in my use case Gentoo Varriants.. for now i've stuck here. (you could use to bisect your live cd for hacking ie gentoo live resecue dvd with more utils ie dying hard drive and forensic recover tools etc.. )
WORKDIR /gentoo
ie needing the epherial chroot of docker and or means of tweaking iso more to my liking woithout a hudge mess. on system or lots of leftovers to clean out and or mounting Host:/packages to docker volume.
if emerge cool-new-toy @ system epic fail......> /he's dead dead Jim ,not fun
so why not docker makes the best victim.. can run /bin/bash in docker shell do my building etc..
IE https://www.pentoo.ch/isos/latest-iso-symlinks/
add ios /sometemp
7z x /sometemp/my.iso / rm *.trashes...
clean out lzm / squash after unpacked to /gentoo or /tmproot
next from push /mydistro / wala
``FROM scratch
WORKDIR / COPY --from=builder /gentoo/ / CMD ["/bin/bash"]``
RUN USE="features" emerge my-add-on-pkgs wala ... ie binutils with use=mutiarch so Crosscompiles suck less. or pch in gcc etc etc..
in pentoos case can add toys from rust like badtouch etc to live iso..
Content type
Image
Digest
Size
7.7 MB
Last updated
over 6 years ago
docker pull necrose99/custom-alpine-builder