labsync/Dockerfile

13 lines
355 B
Docker

FROM debian:stretch
RUN apt-get update \
&& apt-get -y install \
initramfs-tools \
linux-image-amd64 \
aria2 \
xxd
COPY imagesync.sh /etc/initramfs-tools/scripts/local-premount/
RUN echo 'RESUME=none' > /etc/initramfs-tools/conf.d/resume \
&& mkinitramfs -o /tmp/initrd.gz $(find /boot -name 'vmlinuz-*' -printf '%f\n' | sed 's/^vmlinuz-//')