ARG RUST_VERSION=1.73.0 FROM rust:${RUST_VERSION}-slim-bullseye AS build RUN --mount=type=cache,target=/usr/local/cargo/registry \ cargo install sqlx-cli --no-default-features --features rustls,sqlite && \ cp /usr/local/cargo/bin/sqlx /bin/sqlx ENV DATABASE_URL=sqlite:/var/p4bl0t.db WORKDIR /app RUN --mount=type=bind,source=src,target=src \ --mount=type=bind,source=Cargo.toml,target=Cargo.toml \ --mount=type=bind,source=Cargo.lock,target=Cargo.lock \ --mount=type=bind,source=migrations,target=migrations \ --mount=type=cache,target=/app/target/ \ --mount=type=cache,target=/usr/local/cargo/registry \ <