2.86 Dockerfile
 1ARG ALPINE_VERSION=latest
 2
 3FROM alpine:${ALPINE_VERSION} AS builder
 4COPY . /build
 5RUN apk -U --no-progress --no-cache add curl-dev build-base && \
 6  cd /build && make && \
 7  make PREFIX="/build/out/usr/local" PREFIX_MAN="/build/out/usr/local/share/man" install && \
 8  chmod +x examples/docker-entrypoint.sh && \
 9  cp examples/docker-entrypoint.sh /build/out/usr/local/bin/entrypoint.sh
10
11FROM alpine:${ALPINE_VERSION}
12RUN apk -U --no-progress --no-cache add libcurl tzdata
13COPY --from=builder /build/out /
14EXPOSE 5050
15VOLUME [ "/data" ]
16ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
17