FROM golang:1.26-alpine AS builder WORKDIR /app ENV GOTOOLCHAIN=auto COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/server FROM alpine:3.19 WORKDIR /app COPY --from=builder /app/server . COPY configs/ configs/ EXPOSE 8080 CMD ["./server"]