hunt-http.dockerfile 425 B

12345678910111213141516
  1. FROM dlangchina/dlang-ldc:latest
  2. ADD ./ /hunt
  3. WORKDIR /hunt
  4. RUN apt-get update -y && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/*
  5. RUN git clone https://github.com/nodejs/http-parser.git && \
  6. cd http-parser && \
  7. make package && \
  8. cd ..
  9. RUN dub upgrade --verbose
  10. RUN dub build --build=release --arch=x86_64 --compiler=ldc2 -f
  11. CMD ["./hunt-minihttp"]