build: use rsproxy for container dependencies

This commit is contained in:
anonsaber 2026-09-25 09:21:43 +08:00
parent dceecaf2f4
commit fc43c6bf93
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# C-DEBIAN-SLIM: Debian builder and runtime; no Alpine/musl dependencies. # C-DEBIAN-SLIM: Debian builder and runtime; no Alpine/musl dependencies.
FROM rust:1-slim-bookworm AS builder FROM rust:1-slim-bookworm AS builder
WORKDIR /build WORKDIR /build
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=sparse+https://rsproxy.cn/index/
COPY Cargo.toml Cargo.lock ./ COPY Cargo.toml Cargo.lock ./
COPY src ./src COPY src ./src
COPY web ./web COPY web ./web