FROM chimeralinux/chimera:latest AS base RUN apk add go FROM base AS builder WORKDIR /app COPY . . RUN go build -ldflags "-s -w" -o diodemail -buildmode=pie ./cmd/server FROM base AS runner WORKDIR /app COPY --from=builder /app/diodemail ./diodemail CMD ["./diodemail"]