diodemail/Dockerfile

14 lines
273 B
Text
Raw Normal View History

2024-10-02 19:15:07 +00:00
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"]