Dockerfile 928 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ARG version=3.12
  2. FROM alpine:${version}
  3. ARG version
  4. ARG GEARMAN_REPO=https://github.com/gearman/gearmand
  5. LABEL description="Gearman Job Server Image (Alpine ${version})"
  6. LABEL maintainer="Gearmand Developers https://github.com/gearman/gearmand"
  7. LABEL version="${version}"
  8. # Install packages
  9. RUN apk add --no-cache \
  10. make \
  11. gcc \
  12. g++ \
  13. autoconf \
  14. automake \
  15. m4 \
  16. git \
  17. libtool \
  18. bash \
  19. file \
  20. py3-sphinx \
  21. util-linux-dev \
  22. libuuid \
  23. libevent-dev \
  24. gperf \
  25. boost-dev \
  26. openssl-dev
  27. # Switch to a non-root user
  28. RUN adduser --disabled-password --shell /bin/bash gearman
  29. USER gearman
  30. # Clone the GitHub repository master branch
  31. RUN cd /tmp && git clone --depth 1 --branch master ${GEARMAN_REPO}.git
  32. # Bootstrap, configure, make, and make test
  33. WORKDIR /tmp/gearmand
  34. RUN ./bootstrap.sh -a
  35. RUN ./configure --enable-ssl 2>&1 | tee ./configure.log
  36. RUN make 2>&1 | tee ./build.log
  37. RUN make test 2>&1 | tee ./test.log