https://dev.kronoz.win/r/rgit.git
1FROM rust:1.71-slim AS builder
2
3RUN apt-get update && apt-get install -y libssl-dev pkg-config
4
5COPY . /sources
6WORKDIR /sources
7RUN cargo build --release
8RUN chown nobody:nogroup /sources/target/release/rgit
9
10FROM debian:bullseye-slim
11COPY --from=builder /sources/target/release/rgit /rgit
12
13USER nobody
14EXPOSE 8000
15ENTRYPOINT ["/rgit", "[::]:8000", "/git", "-d", "/tmp/rgit-cache.db"]