all repos — legit @ 4f5d35ffd22e8727c25ba0b028c0baade25cb32f

web frontend for git, written in go

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