Prepara versao dev 1.0

This commit is contained in:
Erik Silva
2025-12-08 21:47:38 -03:00
parent 512287698e
commit 190fde20c3
85 changed files with 7755 additions and 2317 deletions

View File

@@ -3,15 +3,18 @@ FROM golang:1.23-alpine AS builder
WORKDIR /build
# Copy go.mod and go.sum from cmd/server
COPY cmd/server/go.mod cmd/server/go.sum ./
RUN go mod download
# Copy go module files
COPY go.mod ./
RUN test -f go.sum && cp go.sum go.sum.bak || true
# Copy source code
COPY cmd/server/main.go ./
# Copy entire source tree (internal/, cmd/)
COPY . .
# Build
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server .
# Ensure go.sum is up to date
RUN go mod tidy
# Build from root (module is defined there)
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server ./cmd/server
# Runtime image
FROM alpine:latest