2017-05-17 19:58:06 +03:00
|
|
|
FROM haskell:8
|
|
|
|
|
|
|
|
RUN git clone https://github.com/facebookincubator/duckling.git
|
|
|
|
|
|
|
|
RUN mkdir /log
|
|
|
|
|
|
|
|
WORKDIR /duckling
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2017-10-27 21:15:48 +03:00
|
|
|
RUN apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends
|
|
|
|
|
|
|
|
RUN stack setup
|
2018-01-03 17:00:08 +03:00
|
|
|
# NOTE:`stack build` will use as many cores as are available to build
|
|
|
|
# in parallel. However, this can cause OOM issues as the linking step
|
|
|
|
# in GHC can be expensive. If the build fails, try specifying the
|
|
|
|
# '-j1' flag to force the build to run sequentially.
|
2017-05-17 19:58:06 +03:00
|
|
|
RUN stack build
|
|
|
|
|
|
|
|
ENTRYPOINT stack exec duckling-example-exe
|