all repos — legit @ 86b2bf47ff930778bd73cce1cda916ffad41518b

web frontend for git

contrib/Dockerfile (view raw)

 1FROM golang:1.19-alpine AS builder
 2
 3WORKDIR /app
 4
 5COPY . ./
 6
 7RUN apk add gcc musl-dev libc-dev
 8
 9RUN go mod download
10RUN go mod verify
11RUN go build -o legit
12
13FROM alpine:latest
14
15WORKDIR /app
16
17COPY static ./static
18COPY templates ./templates
19COPY config.yaml ./
20COPY --from=builder /app/legit ./
21
22EXPOSE 5555
23
24CMD ["./legit"]
25