mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-24 17:57:51 -03:00
ec788fec85
don't use volume, use latest alpine so i won't need to bump it use multistage static build for minimal size with stripping correctly save git version details
14 lines
388 B
Docker
14 lines
388 B
Docker
FROM alpine:latest AS builder
|
|
RUN apk add --no-cache gcc libc-dev libsodium-dev libsodium-static make autoconf git
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN ./autogen.sh
|
|
RUN ./configure --enable-amd64-51-30k CFLAGS="-O3 -march=x86-64 -mtune=generic -fomit-frame-pointer" LDFLAGS="-static"
|
|
RUN make
|
|
RUN strip mkp224o
|
|
|
|
FROM scratch
|
|
WORKDIR /app
|
|
COPY --from=builder /app/mkp224o .
|
|
|
|
ENTRYPOINT ["./mkp224o"]
|