forked from HIT-SCIR/ltp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request HIT-SCIR#287 from HIT-SCIR/develop
Dockerfile update
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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,20 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Michael Liu <[email protected]> | ||
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \ | ||
ca-certificates \ | ||
cmake \ | ||
curl \ | ||
g++ \ | ||
git \ | ||
make \ | ||
unzip \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN git clone https://github.com/HIT-SCIR/ltp.git ltp \ | ||
&& cd ltp && ./configure && make -j "$(nproc)" \ | ||
&& mv bin/ltp_server / && mv lib/libdynet.so /usr/lib/ && cd / && rm -fr ltp | ||
|
||
RUN curl --silent -o ltp_data.zip http://ospm9rsnd.bkt.clouddn.com/model/ltp_data_v3.4.0.zip \ | ||
&& unzip ltp_data.zip && mv ltp_data_v3.4.0 ltp_data && rm -f ltp_data.zip | ||
|
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