hunt-ldc-postgresql.dockerfile 351 B

123456789101112131415
  1. FROM dlanguage/ldc:1.7.0
  2. ADD ./ /hunt
  3. WORKDIR /hunt
  4. RUN apt update -yqq && apt install -yqq git make libpq-dev
  5. RUN git clone https://github.com/nodejs/http-parser.git && \
  6. cd http-parser && \
  7. make package
  8. RUN dub upgrade --verbose
  9. RUN dub build --build=release --arch=x86_64 --compiler=ldc2 --config=postgresql -f
  10. CMD ["./hunt-minihttp"]