Initial commit

This commit is contained in:
nemunaire 2026-04-23 01:52:25 +07:00
commit 09b5fcc7fc
19 changed files with 1429 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM golang:1.25-alpine AS builder
ARG CHECKER_VERSION=custom-build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go generate ./... && CGO_ENABLED=0 go build -ldflags "-X main.Version=${CHECKER_VERSION}" -o /checker-caa .
FROM scratch
COPY --from=builder /checker-caa /checker-caa
EXPOSE 8080
ENTRYPOINT ["/checker-caa"]