OPENNLP-1227: Adding OpenNLP container. (#340)

* OPENNLP-1227: Adding OpenNLP container.

* OPENNLP-1227: Updating base image.
diff --git a/opennlp-distr/pom.xml b/opennlp-distr/pom.xml
index 5a256b6..bd02766 100644
--- a/opennlp-distr/pom.xml
+++ b/opennlp-distr/pom.xml
@@ -157,6 +157,43 @@
         </plugins>     
       </build>
     </profile>
+    <profile>
+      <id>docker</id>
+      <build>
+      <plugins>
+        <plugin>
+        <groupId>com.spotify</groupId>
+        <artifactId>docker-maven-plugin</artifactId>
+        <version>0.4.13</version>
+        <executions>
+          <execution>
+          <phase>package</phase>
+          <goals>
+            <goal>build</goal>
+          </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <imageName>apacheopennlp</imageName>
+          <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
+          <imageTags>
+          <imageTag>${project.version}</imageTag>
+          </imageTags>
+          <buildArgs>
+            <OPENNLP_BINARY>apache-opennlp-${project.version}-bin.tar.gz</OPENNLP_BINARY>
+          </buildArgs>
+          <resources>
+          <resource>
+            <targetPath>/</targetPath>
+            <directory>${project.build.directory}</directory>
+            <include>apache-opennlp-${project.version}-bin.tar.gz</include>
+          </resource>
+          </resources>
+        </configuration>
+        </plugin>
+      </plugins>
+      </build>
+    </profile>
   </profiles> 
   
 </project>
diff --git a/opennlp-distr/src/main/docker/Dockerfile b/opennlp-distr/src/main/docker/Dockerfile
new file mode 100644
index 0000000..0db8985
--- /dev/null
+++ b/opennlp-distr/src/main/docker/Dockerfile
@@ -0,0 +1,10 @@
+FROM openjdk:11-jre-slim
+MAINTAINER Apache OpenNLP (dev@opennlp.apache.org)
+
+ARG OPENNLP_BINARY
+
+ENV OPENNLP_BASE_DIR /opt/opennlp
+
+ADD $OPENNLP_BINARY $OPENNLP_BASE_DIR
+
+CMD ["sh"]