FROM golang:1.24-alpine AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN go build -o main.out ./cmd/main.go FROM alpine:latest COPY --from=builder /app/main.out /app/checkfile EXPOSE 8080 CMD ["/app/checkfile"]