FROM golang:1.25-alpine AS builder WORKDIR /src COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o /terdut ./cmd/terdut FROM scratch COPY --from=builder /terdut /terdut EXPOSE 8080 ENTRYPOINT ["/terdut"]