Files
Stian Fredrik Aune d4eaccb1f7
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
1.0.1
2025-07-05 14:02:11 +02:00

19 lines
260 B
Docker

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