feat(backend): bootstrap Go module, config, and data plane

Introduce configuration validation, Postgres migrations, Redis/storage adapters, and the seed sample video.
This commit is contained in:
ahp
2026-10-07 19:40:26 +03:30
parent 5b9b2a16e6
commit f76c7a110b
40 changed files with 2289 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM golang:1.27-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/pargar ./cmd/server
FROM alpine:3.22
RUN adduser -D -H -u 10001 app
WORKDIR /app
COPY --from=builder /out/pargar ./pargar
COPY --from=builder /src/media/sample.mp4 ./media/sample.mp4
RUN chown -R app:app /app
USER app
EXPOSE 8080
CMD ["./pargar"]