diff --git a/Dockerfile b/Dockerfile index 666de0c..bfe72bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,20 +45,7 @@ COPY crates ./crates # trick above leaves stale build artifacts otherwise. RUN find crates -name '*.rs' -exec touch {} + -# Build-time URL rewrite: route the public github/gitlab pallas URLs -# (which is what Cargo.toml declares — source-of-truth, portable to -# external clones) back to the LAN gitea over HTTP+PAT. This is purely -# a fetch-time short-circuit: no LAN URL or credential is baked into -# Cargo.lock or the image. The lock file's locked SHA stays identical -# whether fetched via github, gitlab, or local gitea. -# -# Pass `--secret id=git_credentials,src=` where is one -# line: http://USER:PAT@git.sulkta.com -RUN --mount=type=secret,id=git_credentials,target=/root/.git-credentials,mode=0400,required=true \ - git config --global credential.helper store && \ - git config --global url."https://git.sulkta.com/Sulkta-Coop/".insteadOf "https://github.com/Sulkta-Coop/" && \ - git config --global url."https://git.sulkta.com/Sulkta-Coop/".insteadOf "https://gitlab.com/sulkta/" && \ - cargo build --release --bin aldabra && \ +RUN cargo build --release --bin aldabra && \ strip target/release/aldabra FROM debian:bookworm-slim AS runtime