Skip to content

Commit

Permalink
fix(dockerfile): git config
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni authored and d-e-s-o committed Aug 5, 2023
1 parent 1ede428 commit 7556ed9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM lukemathwalker/cargo-chef:0.1.59-rust-bullseye AS chef
FROM lukemathwalker/cargo-chef:0.1.62-rust-bullseye AS chef
WORKDIR /app

FROM chef as planner
Expand All @@ -19,5 +19,12 @@ FROM debian:bullseye-slim as runner

WORKDIR /app

RUN apt-get update && \
apt-get install -y git && \
apt-get clean && rm -rf /var/lib/apt/lists/*

RUN git config --global user.name = "cargo-http-registry"
RUN git config --global user.email = "[email protected]"

COPY --from=builder /app/target/release/cargo-http-registry /usr/local/bin
ENTRYPOINT ["cargo-http-registry"]

0 comments on commit 7556ed9

Please sign in to comment.