feat: migrate backend to Golang (Gin + GORM)

This commit is contained in:
2026-10-30 01:55:46 +03:00
parent 65003b6119
commit 94907ee68d
20 changed files with 952 additions and 117 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata curl
WORKDIR /root/
COPY --from=builder /app/main .
EXPOSE 8080
CMD ["./main"]