-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER a8568730 | ||
|
||
RUN apt update | ||
RUN apt install -y \ | ||
cmake \ | ||
libboost-dev \ | ||
libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-locale-dev \ | ||
libgoogle-glog-dev \ | ||
libgtest-dev \ | ||
libyaml-cpp-dev \ | ||
libleveldb-dev \ | ||
libmarisa-dev | ||
|
||
RUN apt install -y git | ||
|
||
# Manually install libopencc | ||
RUN git clone https://github.com/BYVoid/OpenCC.git | ||
WORKDIR OpenCC/ | ||
RUN apt install -y doxygen | ||
RUN make | ||
RUN make install | ||
|
||
# Fix libgtest problem during compiling | ||
WORKDIR /usr/src/gtest | ||
RUN cmake CMakeLists.txt | ||
RUN make | ||
#copy or symlink libgtest.a and libgtest_main.a to your /usr/lib folder | ||
RUN cp *.a /usr/lib | ||
|
||
# Build librime | ||
WORKDIR / | ||
RUN git clone https://github.com/rime/librime.git | ||
WORKDIR librime/ | ||
RUN make | ||
RUN make install |