Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dockerfile to run the coreNLP server.
FROM java:8
RUN curl http://nlp.stanford.edu/software/stanford-corenlp-full-2015-12-09.zip > corenlp.zip
RUN unzip corenlp.zip -d /corenlp
RUN mv /corenlp/*/* /corenlp
WORKDIR /corenlp
RUN export CLASSPATH="`find . -name '*.jar'`"
EXPOSE 9000
CMD java -cp "*" -mx4g edu.stanford.nlp.pipeline.StanfordCoreNLPServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment