123456789101112131415161718192021222324252627 |
- FROM haskell:8.6.5
- RUN apt-get update -yqq && apt-get install -yqq xz-utils make
- RUN apt-get install -yqq libpq-dev
- WORKDIR /app
- # Update cabal here
- RUN cabal update
- # First add only
- COPY cabal.project ./
- COPY ./servant-tfb/servant-tfb.cabal ./servant-tfb/servant-tfb.cabal
- RUN find .
- RUN cabal v2-build warp
- RUN cabal v2-build wai-app-static
- RUN cabal v2-build beam-postgres
- RUN cabal v2-build servant-server
- ADD ./servant-tfb ./servant-tfb
- RUN cabal v2-build all
- RUN cp $(find dist-newstyle -name servant-tfb -type f) /app/dist-newstyle/servant-tfb-exe
- EXPOSE 7041
- CMD /app/dist-newstyle/servant-tfb-exe +RTS -A32m -N$(nproc) -qn2 -M2G -RTS
|