You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
207 B

FROM golang:1.23 AS build
WORKDIR /build
ENV CGO_ENABLED 0
COPY . .
RUN go build -ldflags "-w -s" -o checker main.go
FROM alpine:3.20.1 AS run
COPY --from=build /build/checker /bin/checker
CMD checker