Files
FamilyHUB/infra/webhook/Dockerfile
T
2026-05-19 22:01:20 +03:00

12 lines
292 B
Docker

FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY infra/webhook/ .
RUN go mod download && \
CGO_ENABLED=0 GOOS=linux go build -o webhook .
FROM alpine:3.19
RUN apk add --no-cache docker-cli ca-certificates
COPY --from=builder /app/webhook /webhook
EXPOSE 9001
ENTRYPOINT ["/webhook"]