Dockerfile 388 B

1234567891011121314
  1. FROM alpine:latest AS builder
  2. RUN apk add --no-cache gcc libc-dev libsodium-dev libsodium-static make autoconf git
  3. WORKDIR /app
  4. COPY . .
  5. RUN ./autogen.sh
  6. RUN ./configure --enable-amd64-51-30k CFLAGS="-O3 -march=x86-64 -mtune=generic -fomit-frame-pointer" LDFLAGS="-static"
  7. RUN make
  8. RUN strip mkp224o
  9. FROM scratch
  10. WORKDIR /app
  11. COPY --from=builder /app/mkp224o .
  12. ENTRYPOINT ["./mkp224o"]