Basic functionality working
Some checks failed
Deploy and Push Docker Image / BuildAndPush (push) Failing after 14s

This commit is contained in:
Henri Burau
2025-06-19 13:57:36 +02:00
parent fac655242f
commit 64f955c4a1
8 changed files with 293 additions and 0 deletions

18
build/Dockerfile Normal file
View File

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