fix(tls): flush early API responses before request body teardown

This commit is contained in:
2026-11-22 19:37:57 +03:00
parent 87d71cba8f
commit 3c8db323c4
4 changed files with 50 additions and 5 deletions
+2 -1
View File
@@ -2,7 +2,8 @@ FROM library/golang:1.27.4-alpine@sha256:70bd7ddea8b6cbe5d6943cde279d6b67feb10cc
WORKDIR /source
COPY infra/tls/*.go ./
RUN CGO_ENABLED=0 GOMAXPROCS=2 go test -count=1 gateway.go gateway_test.go \
&& CGO_ENABLED=0 GOMAXPROCS=2 go build -trimpath -ldflags="-s -w" -o /out/tls-gateway gateway.go
&& CGO_ENABLED=0 GOMAXPROCS=2 go build -trimpath -ldflags="-s -w" -o /out/tls-gateway gateway.go \
&& rm -rf /root/.cache/go-build
FROM ghcr.io/astral-sh/uv:0.13.7@sha256:96f40d3904aad8d0bd010539001d36c8e2188b981e1334471a90c4a1d93bb490 AS uv
FROM python:3.14.7-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d AS builder