feat: add initial project structure and files for Go API with PostgreSQL and HAProxy

Co-authored-by: aider (ollama/qwen2.5-coder:7b) <aider@aider.chat>
This commit is contained in:
2026-11-09 19:51:17 +03:00
co-authored by aider
parent 0ab3a341aa
commit 7734b222f8
11 changed files with 333 additions and 323 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o server ./cmd/server
RUN go build -o migrate ./cmd/migrate
FROM alpine:3.19
WORKDIR /app
COPY --from=builder /app/server /app/server
COPY --from=builder /app/migrate /app/migrate
COPY --from=builder /app/internal/migrate/sql /app/internal/migrate/sql
ENTRYPOINT ["./server"]