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