Skip to content

Commit

Permalink
Trying rust-tls to speed up the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Aug 27, 2024
1 parent e32498f commit b094675
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile.xx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ 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 && \
/usr/local/cargo/registry/index && \
cargo fetch

ENV PROFILE=release-github
Expand All @@ -23,6 +26,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 && \
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 b094675

Please sign in to comment.