mirror of
https://github.com/facebook/duckling.git
synced 2024-09-11 13:25:40 +03:00
Add note about -j1 flag for stack build
Summary: I had trouble building the Docker image on a mac because `stack build` was trying to use all the cores and subsequently running out of memory. It took me a while to find the right flag, so I added a note to the dockerfile. Closes https://github.com/facebook/duckling/pull/135 Differential Revision: D6655605 Pulled By: patapizza fbshipit-source-id: 559c9fde175ad89f64b5c487afb77e3b7d5b982f
This commit is contained in:
parent
89822776c6
commit
92e321e9ad
@ -11,7 +11,10 @@ RUN apt-get update
|
||||
RUN apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user