Skip to content

Commit 993c495

Browse files
authored
Update run.Dockerfile
Updated dpkg-deb command to use `--control` instead of `-e` to be more specific of its function Changed folder to `CONTROL` instead of `MD5SUMS` to explain its use more Moved md5sums file to `/tiny/var/lib/dpkg/status.d/$pkg.md5sums` to follow what is done with Distroless images and to allow Syft to function correctly.
1 parent ae6273e commit 993c495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stacks/noble-tiny-stack/run/run.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ RUN apt download $packages \
2727
&& dpkg-deb -c $pkg*.deb | awk '{print substr($6, 2)}' > /tiny/var/lib/dpkg/info/$pkg.list \
2828
&& sed -i '1s|.*|/.|' /tiny/var/lib/dpkg/info/$pkg.list \
2929
&& sed -i '/\/$/s|/$||' /tiny/var/lib/dpkg/info/$pkg.list \
30-
&& dpkg-deb -e $pkg*.deb MD5SUMS \
31-
&& cp MD5SUMS/md5sums /tiny/var/lib/dpkg/info/$pkg.md5sums \
32-
&& rm -rf MD5SUMS; \
30+
&& dpkg-deb --control $pkg*.deb CONTROL \
31+
&& cp CONTROL/md5sums /tiny/var/lib/dpkg/status.d/$pkg.md5sums \
32+
&& rm -rf CONTROL; \
3333
done
3434

3535
RUN ./install-certs.sh

0 commit comments

Comments
 (0)