Skip to content

Instantly share code, notes, and snippets.

@charlieegan3
Created January 21, 2017 16:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlieegan3/910276eef0f8658b44b42af268599931 to your computer and use it in GitHub Desktop.
Save charlieegan3/910276eef0f8658b44b42af268599931 to your computer and use it in GitHub Desktop.
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