mirror of
https://github.com/facebook/duckling.git
synced 2024-12-20 02:22:06 +03:00
9b69b1fc96
Summary: Pull Request resolved: https://github.com/facebook/duckling/pull/467 Reviewed By: chinmay87 Differential Revision: D20700248 Pulled By: patapizza fbshipit-source-id: 17f933106c6f18fcd93b73f42af458220d93b6cf
23 lines
584 B
Docker
23 lines
584 B
Docker
FROM haskell:8
|
|
|
|
RUN git clone https://github.com/facebook/duckling.git
|
|
|
|
RUN mkdir /log
|
|
|
|
WORKDIR /duckling
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
RUN stack setup
|
|
# 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.
|
|
RUN stack build
|
|
|
|
ENTRYPOINT stack exec duckling-example-exe
|