ЛР2 на 4: PostgreSQL, Argon2id, Redis-сессии и persistence.
Skeleton contracts / contracts (pull_request) Blocked by required conditions

Compose-стенд, student-tests (expiry/EXPLAIN), REPORT и шпаргалка DEFENSE.
This commit is contained in:
2026-12-01 21:50:51 +03:00
parent 65003b6119
commit de4cf3debd
26 changed files with 3265 additions and 27 deletions
+20
View File
@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1.7
FROM golang:1.23.8-bookworm AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY cmd ./cmd
COPY internal ./internal
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/server ./cmd/server
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=build /out/server /server
USER nonroot:nonroot
EXPOSE 8080
ENV APP_HOST=0.0.0.0 \
APP_PORT=8080 \
APP_ENV=lab \
SESSION_TTL_SECONDS=3600
HEALTHCHECK --interval=5s --timeout=3s --start-period=15s --retries=5 \
CMD ["/server", "-healthcheck"]
ENTRYPOINT ["/server"]