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

This commit is contained in:
2026-06-26 10:49:36 +02:00 Unverified
commit 8f962a2047
4 changed files with 192 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"]