FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o portal cmd/portal/main.go

FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/portal .
COPY pkg/web/portal/templates ./templates
CMD ["./portal"] 