slitaz5cn/dockerfile-rootfs64

15 lines
399 B
Plaintext
Raw Normal View History

2021-02-09 00:31:18 +00:00
FROM slitazcn/slitaz-5.0-base
COPY ./iso-old/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 / && \
sh /gen-slitaz64.sh && \
cd /tmp/rootfs && \
ls -l && \
find . -print | cpio -o -H newc | lzma e -si -so > ../rootfs-new.gz