加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 858 Bytes
一键复制 编辑 原始数据 按行查看 历史
Qijia Liu 提交于 2023-10-26 16:38 . support predict plugin (#748)
FROM debian:12.1
RUN apt update && apt install -y \
git \
build-essential \
cmake \
ninja-build \
libboost-dev \
libboost-regex-dev \
libboost-locale-dev \
libgoogle-glog-dev \
libgtest-dev \
libyaml-cpp-dev \
libleveldb-dev \
libmarisa-dev \
libopencc-dev \
liblua5.4-dev
COPY / /librime
WORKDIR /librime/plugins
RUN git clone https://github.com/rime/librime-charcode charcode && \
git clone https://github.com/hchunhui/librime-lua lua && \
git clone https://github.com/rime/librime-predict predict && \
git clone https://github.com/lotem/librime-octagram octagram
WORKDIR /librime
RUN cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_LOGGING:BOOL=ON \
-DBUILD_TEST:BOOL=ON \
-DBUILD_STATIC:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=ON
RUN cmake --build build
WORKDIR /librime/build
RUN ctest
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化