Files
WeeWooWebhook/build/Dockerfile
Henri Burau 381b8fa9ee
Some checks failed
Deploy and Push Docker Image / BuildAndPush (push) Failing after 33s
Fix ci
2025-06-19 14:08:58 +02:00

19 lines
391 B
Docker

FROM golang:1.24-alpine AS builder
# Set working directory
WORKDIR /app
# Copy source code
COPY . .
# Build the Go binary statically
RUN go build -o weewoowebhook /app/cmd/wee_woo_webhook/main.go
FROM alpine
# Copy statically built binary from the builder
COPY --from=builder /app/weewoowebhook /weewoowebhook
# Set the binary as the container entrypoint
ENTRYPOINT ["/weewoowebhook"]