File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ *
Original file line number Diff line number Diff line change 1+ /out
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
33RUN sed -i 's|security.debian.org|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
44RUN apt update
55RUN apt install -y gcc dietlibc-dev aria2 make
6- RUN cd /
6+ RUN mkdir /src
7+ RUN cd /src
78RUN aria2c -k 1048576 -s 32768 -j 32768 -x 16 -k 1M http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.45.2.tar.gz
89RUN tar -xzvf e2fsprogs-1.45.2.tar.gz
9- RUN cd /e2fsprogs-1.45.2
10- RUN ./configure --disable-threads --disable-tls --disable-nls --with-diet-libc --disable-imager --disable-debugfs --disable-defrag --disable-fuse2fs --disable-fsck --disable-e2initrd-helper
10+ RUN cd /src/ e2fsprogs-1.45.2
11+ RUN ./configure --prefix=/src -- disable-threads --disable-tls --disable-nls --with-diet-libc --disable-imager --disable-debugfs --disable-defrag --disable-fuse2fs --disable-fsck --disable-e2initrd-helper
1112RUN make -j4
13+ RUN make install
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+ img=" $( basename " $( mktemp -u) " ) "
4+ docker build -t " $img " .
5+ rm -fr out
6+ mkdir out
7+ docker run -it --rm -v " $( pwd) /out:/out" " $img " cp -vr /src/ /out/
8+ docker rmi " $img "
You can’t perform that action at this time.
0 commit comments