add cashing of rust dependencies
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-05 20:26:20 +02:00
parent bde8cc6514
commit 79fc59c2a1

View File

@@ -6,6 +6,12 @@ RUN apt-get update && apt-get install -y \
WORKDIR "/app" WORKDIR "/app"
# Cache dependencies
COPY Cargo.toml .
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release --locked
# Build
COPY . . COPY . .
RUN cargo build --release --locked RUN cargo build --release --locked