diodemail/Dockerfile
2024-10-02 19:15:07 +00:00

13 lines
273 B
Docker

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"]