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.
This commit is contained in:
Saj Goonatilleke 2021-11-12 06:15:52 +11:00
parent 2421a0c338
commit aba7b4f458
1 changed files with 3 additions and 3 deletions

View File

@ -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 \