docker
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
2025-10-19 09:21:08 -06:00
parent a0fe2f2067
commit 1db163bf62
3 changed files with 38 additions and 2 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.* ./
RUN go mod download || true
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o pecker .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/pecker .
CMD ["./pecker"]