add dockerfile

This commit is contained in:
wyy 2014-10-25 00:58:31 +08:00
parent 82d8a23ab9
commit 6ac7a8c85c

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM ubuntu:14.04
MAINTAINER yanyiwu <wuyanyi09@foxmail.com>
RUN apt-get update
RUN apt-get install -y g++ cmake git
RUN git clone https://github.com/aszxqw/cppjieba.git
RUN mkdir cppjieba/build
WORKDIR /cppjieba/build
RUN cmake ..
RUN make
EXPOSE 11200
CMD ["./bin/cjserver", "../test/testdata/server.conf"]