gitview/contrib/Dockerfile
contrib/DockerfileRaw
1FROM golang:1.27-alpine AS builder
2WORKDIR /app
3COPY go.mod go.sum ./
4RUN go mod download
5COPY . .
6RUN CGO_ENABLED=0 go build -o /gitview ./cmd
7FROM alpine:3.23
8RUN apk add --no-cache git ca-certificates
9WORKDIR /app
10COPY --from=builder /gitview /usr/local/bin/gitview
11COPY templates ./templates
12COPY static ./static
13COPY config.yaml ./config.yaml
14RUN mkdir repos
15EXPOSE 5555
16CMD ["gitview", "--config", "/app/config.yaml"]