Initial commit
This commit is contained in:
commit
a2ebf17774
15 changed files with 1041 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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 CGO_ENABLED=0 go build -ldflags "-X main.Version=${CHECKER_VERSION}" -o /checker-ping .
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /checker-ping /checker-ping
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/checker-ping"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue