File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM ubuntu:18.04
2+ MAINTAINER a8568730
3+
4+ RUN apt update
5+ RUN apt install -y \
6+ cmake \
7+ libboost-dev \
8+ libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-locale-dev \
9+ libgoogle-glog-dev \
10+ libgtest-dev \
11+ libyaml-cpp-dev \
12+ libleveldb-dev \
13+ libmarisa-dev
14+
15+ RUN apt install -y git
16+
17+ # Manually install libopencc
18+ RUN git clone https://github.com/BYVoid/OpenCC.git
19+ WORKDIR OpenCC/
20+ RUN apt install -y doxygen
21+ RUN make
22+ RUN make install
23+
24+ # Fix libgtest problem during compiling
25+ WORKDIR /usr/src/gtest
26+ RUN cmake CMakeLists.txt
27+ RUN make
28+ # copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder
29+ RUN cp *.a /usr/lib
30+
31+ # Build librime
32+ WORKDIR /
33+ RUN git clone https://github.com/rime/librime.git
34+ WORKDIR librime/
35+ RUN make
36+ RUN make install
You can’t perform that action at this time.
0 commit comments