基于Raspberry Pi的Rasa小鸭docker映像(基于haskell)-无法构建

时间:2019-10-20 13:37:17

标签: docker haskell raspberry-pi rasa

我正在尝试让rasa-duckling在树莓派上的docker中工作,但无法构建它。

official image使用haskell:8,我正在尝试使用经过修改的图像-rpi-haskell,该图像在raspbian上已安装haskell。

该版本扩展到str[..<index] str[index...] ,然后找不到合适的.cabal文件。

我以前没有使用过haskell,也无法找出解决方法。

感谢您提供修复方面的帮助。

Dockerfile

RUN stack setup

错误:

FROM tgolson/rpi-haskell

RUN apt-get update -qq && \
  apt-get install -qq -y libpcre3 libpcre3-dev build-essential --fix-missing --no-install-recommends && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mkdir /log
RUN mkdir duckling
WORKDIR duckling
RUN apt-get install -y git

RUN git clone https://github.com/RasaHQ/duckling.git
WORKDIR duckling

RUN sudo apt-get install llvm-3.7
RUN ln -s /usr/bin/opt-3.7 /usr/bin/opt
RUN ln -s /usr/bin/llc-3.7 /usr/bin/llc
RUN stack update

ADD stack.yaml .

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 install

EXPOSE 8000

CMD ["duckling-example-exe", "--no-access-log", "--no-error-log"]

0 个答案:

没有答案