FROM golang:1.23-alpine AS builder WORKDIR /app COPY . . RUN go mod download RUN CGO_ENABLED=0 GOOS=linux go build -o portal ./cmd/portal FROM alpine:3.19 WORKDIR /app COPY --from=builder /app/portal . # Copy any web templates/static files if needed COPY web/templates/ ./web/templates/ ENTRYPOINT ["./portal"]