Skip to content

Commit cafd0d5

Browse files
Wenli Tsailotem
Wenli Tsai
authored andcommitted
feat(Dockerfile): for build (#246)
1 parent 402a93a commit cafd0d5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Dockerfile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)