qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

debian-bootstrap.docker (705B)


      1 # Create Debian Bootstrap Image
      2 #
      3 # This is intended to be pre-poluated by:
      4 #  - a first stage debootstrap (see debian-bootstrap.pre)
      5 #  - a native qemu-$arch that binfmt_misc will run
      6 FROM scratch
      7 
      8 # Add everything from the context into the container
      9 ADD . /
     10 
     11 # Patch all mounts as docker already has stuff set up
     12 # (this is not needed for later debootstraps but is harmless atm)
     13 RUN sed -i 's/in_target mount/echo not for docker in_target mount/g' /debootstrap/functions
     14 
     15 # Run stage 2
     16 RUN /debootstrap/debootstrap --second-stage
     17 
     18 # At this point we can install additional packages if we want
     19 # Duplicate deb line as deb-src
     20 RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list