initial commit

This commit is contained in:
Daniel Noulet 2026-10-01 23:15:57 +02:00
commit 54576d9d33
61 changed files with 5569 additions and 0 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM golang:1.27.1-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/go-loose ./cmd/go-loose
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=build /out/go-loose /go-loose
EXPOSE 8080
USER nonroot:nonroot
ENTRYPOINT ["/go-loose"]