shit: slopped from bun into a (I hope) light go shit
Build and Publish Docker Image / build-and-push (push) Failing after 22s

This commit is contained in:
2026-06-26 11:11:15 +02:00 Unverified
commit 66abb47ac1
4 changed files with 184 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM --platform=$BUILDPLATFORM golang:1.22-alpine AS builder
ARG TARGETOS
ARG TARGETARCH
WORKDIR /app
COPY go.mod ./
COPY main.go ./
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o debugghttpy .
FROM scratch
LABEL authors="reloia"
WORKDIR /app
COPY --from=builder /app/debugghttpy .
ENV PORT=3000
ENV DOMAIN="*"
CMD ["./debugghttpy"]