Skip to content

Commit

Permalink
Add Dockerfile for creating binaries (facebook#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Huang <alhuang10@gmail.com>
  • Loading branch information
2 people authored and GitHub Enterprise committed Jun 28, 2021
1 parent 76145f6 commit a21fe1b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:xenial

RUN apt-get update

RUN apt-get install -y curl git --fix-missing --no-install-recommends

RUN apt-get install -qq -y libpcre3 libpcre3-dev build-essential ca-certificates --fix-missing --no-install-recommends

RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata

RUN curl -sSL https://get.haskellstack.org/ | sh

RUN mkdir /duckling

COPY . /duckling

RUN mkdir /log

WORKDIR /duckling

# 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 -j1

0 comments on commit a21fe1b

Please sign in to comment.