FROM golang:1.26-alpine AS builder WORKDIR /app RUN apk add --no-cache git bash gcc musl-dev COPY go.mod go.sum ./ RUN go mod download COPY . . ENV CGO_ENABLED=1 ENV GIN_MODE=release RUN go build -o server . FROM alpine:latest RUN apk add --no-cache ca-certificates bash WORKDIR /app COPY --from=builder /app/server . COPY templates ./templates COPY static ./static EXPOSE 8080 ENV GIN_MODE=release CMD ["./server"]