v1.0.3 — ревью Соннета: SSRF fix, go.sum, readyz, sort, graceful shutdown, gofmt

This commit is contained in:
“Naeel”
2026-08-08 22:02:41 +04:00
parent 4c10a3b836
commit da03bd023b
5 changed files with 206 additions and 86 deletions
+3 -1
View File
@@ -6,8 +6,10 @@
FROM golang:1.24-alpine AS builder
ENV GOTOOLCHAIN=auto
WORKDIR /app
COPY server/go.mod server/go.sum ./
RUN go mod download
COPY server/ .
RUN go mod init tf-registry && go mod tidy && CGO_ENABLED=0 go build -o registry .
RUN CGO_ENABLED=0 go build -o registry .
FROM alpine:3.21
RUN apk --no-cache add ca-certificates