Dockerfile 575 B

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