Skip to content

Commit

Permalink
ci: use sparse cargo registry protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyvion committed Mar 25, 2023
1 parent 7bbfe3e commit 50f55b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ WORKDIR /usr/src/qcext-server
# Run SQLX in offline mode
ENV SQLX_OFFLINE=true

# Use spare registry protocol
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse

# Build the dependencies in a separate step to avoid rebuilding all of them
# every time the source code changes. This takes advantage of Docker's layer
# caching, and it works by doing a build using the Cargo.{toml,lock} files with
Expand Down

0 comments on commit 50f55b7

Please sign in to comment.