all repos — legit @ 72a658a30f52caf140a555a14c8704448849be97

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