contrib/Dockerfile (view raw)
1FROM golang:1.22-alpine AS builder
2
3WORKDIR /app
4
5COPY . .
6RUN go mod download
7RUN go mod verify
8
9RUN go build -o legit
10
11FROM scratch AS build-release-stage
12
13WORKDIR /app
14
15COPY static ./static
16COPY templates ./templates
17COPY config.yaml ./
18COPY --from=builder /app/legit ./
19
20EXPOSE 5555
21
22CMD ["./legit"]