Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
liu946 committed Feb 1, 2018
1 parent dfad8c1 commit 86e5bcf
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
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

0 comments on commit 86e5bcf

Please sign in to comment.