docker: remove -maxdepth from find

docker: remove -maxdepth from find

As far as I can recall, my original intent was to perform a recursive directory entry removal without resorting to a shell glob. Recursive descent works a lot better when find is allowed to, y’know, descend.

Suspect this was a brain fart on my part.

diff --git a/Dockerfile b/Dockerfile
index 225ee21..cbea57f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,9 +17,9 @@ FROM debian:bullseye-slim
 RUN DEBIAN_FRONTEND=noninteractive apt-get update \
   && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade \
   && DEBIAN_FRONTEND=noninteractive apt-get clean \
-  && ( find /var/lib/apt/lists -mindepth 1 -maxdepth 1 -delete || true ) \
-  && ( find /var/tmp -mindepth 1 -maxdepth 1 -delete || true ) \
-  && ( find /tmp -mindepth 1 -maxdepth 1 -delete || true )
+  && ( find /var/lib/apt/lists -mindepth 1 -delete || true ) \
+  && ( find /var/tmp -mindepth 1 -delete || true ) \
+  && ( find /tmp -mindepth 1 -delete || true )
 
 COPY --from=builder \
   /root/src/discourse-auth-proxy \

GitHub sha: aba7b4f458181d6f9148ebc55130f2e9a6ab08a0