Re-upload build files

This commit is contained in:
selfhst-bot
2026-01-05 08:17:39 -05:00
parent 6076f771ca
commit 8c117af692
3 changed files with 458 additions and 0 deletions

18
build/Dockerfile.txt Executable file
View File

@@ -0,0 +1,18 @@
FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod main.go ./
RUN CGO_ENABLED=0 go build -o server .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/server /server
USER 65534:65534
EXPOSE 4050
ENTRYPOINT ["/server"]