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.
18 lines
260 B
18 lines
260 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 debian:12-slim AS run
|
|
|
|
COPY --from=build /build/checker /bin/checker
|
|
|
|
RUN apt update
|
|
RUN apt install -y ca-certificates
|
|
|
|
CMD checker
|