gitscope
← rgit / 0.1.2 / Dockerfile
https://dev.kronoz.win/r/rgit.git
Dockerfile · Docker
Blame Raw
 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
 8
 9FROM debian:bullseye-slim
10
11# Install git and cleanup package lists.
12# This is required for git-http-backend to work.
13RUN apt-get update && \
14    apt-get install -y git && \
15    rm -rf /var/lib/apt/lists/*
16
17COPY --from=builder /sources/target/release/rgit /rgit
18
19COPY ./scripts/docker/entrypoint.sh .
20RUN chmod +x entrypoint.sh
21
22EXPOSE 8000
23ENTRYPOINT ["/entrypoint.sh"]