Permalink
Browse files

Dockerfile

  • Loading branch information...
liu946 committed Feb 1, 2018
1 parent dfad8c1 commit 86e5bcf5333a41f30ccc0b42160f9242d57a7919
Showing with 20 additions and 0 deletions.
  1. +20 −0 Dockerfile
View
@@ -0,0 +1,20 @@
FROM ubuntu:16.04
MAINTAINER Michael Liu <mkliuyang@gmail.com>
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.