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:
parent
2421a0c338
commit
aba7b4f458
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue