slitaz5cn/dockerfile-rootfs32

16 lines
413 B
Plaintext
Raw Permalink Normal View History

2021-02-09 00:31:18 +00:00
FROM slitazcn/slitaz-5.0-base
COPY ./iso-old32/boot/rootfs.gz ./packages/* ./
RUN mkdir -p /tmp/rootfs && \
ls -l && \
mv rootfs.gz /tmp/rootfs && \
cd /tmp/rootfs && \
(zcat rootfs.gz 2>/dev/null || lzma d rootfs.gz -so) | cpio -id && \
rm rootfs.gz && \
cd / && \
ls -l && \
sh /gen-slitaz32.sh && \
cd /tmp/rootfs && \
ls -l && \
find . -print | cpio -o -H newc | lzma e -si -so > ../rootfs-new.gz