fix: Fixes #13071 change order of ldd command and update ./docker/README.md (#13072)

* fixes #13071

* remove warning
This commit is contained in:
Luke Schoen
2023-03-08 07:57:46 +11:00
committed by GitHub
parent 9dd10d131d
commit 1c92bd5c12
2 changed files with 8 additions and 3 deletions
@@ -24,10 +24,10 @@ RUN useradd -m -u 1000 -U -s /bin/sh -d /substrate substrate && \
mkdir -p /data /substrate/.local/share/substrate && \
chown -R substrate:substrate /data && \
ln -s /data /substrate/.local/share/substrate && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
# Sanity checks
ldd /usr/local/bin/substrate && \
# unclutter and minimize the attack surface
rm -rf /usr/bin /usr/sbin && \
/usr/local/bin/substrate --version
USER substrate