Skip to content

Commit

Permalink
shorter find commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Aug 27, 2024
1 parent 0b7e011 commit eee142c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docker/Dockerfile.xx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ WORKDIR /src/
RUN --mount=type=cache,target=/usr/local/cargo/git/db \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/registry/index \
find /usr/local/cargo/git/db && \
find /usr/local/cargo/registry/cache && \
find /usr/local/cargo/registry/index && \
find /usr/local/cargo/git/db \
/usr/local/cargo/registry/cache \
/usr/local/cargo/registry/index \
-maxdepth 2 -type d &&
cargo fetch

ENV PROFILE=release-github
Expand All @@ -26,7 +27,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/git/db \
--mount=type=cache,target=/usr/local/cargo/registry/cache \
--mount=type=cache,target=/usr/local/cargo/registry/index \
--mount=type=cache,target=/src/target \
find /src/target && \
find /src/target -maxdepth 2 -type d && \
xx-cargo build --profile "${PROFILE}" --no-default-features --features rust-tls,webui && \
xx-verify --static "./target/$(xx-cargo --print-target-triple)/${PROFILE}/rqbit" && \
mv "./target/$(xx-cargo --print-target-triple)/${PROFILE}/rqbit" /bin/rqbit
Expand Down

0 comments on commit eee142c

Please sign in to comment.