diff --git a/.gitignore b/.gitignore index 3bfaa70f..d392f0e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ -.idea/* -**/target/* -*.iml +*.jar diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..969add44 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM tomcat:8.5.45-jdk8 +COPY target/*.war /usr/local/tomcat/webapps +EXPOSE 8080 +CMD ["catalina.sh", "run"] diff --git a/pom.xml b/pom.xml index f55768d8..8e8f01e2 100644 --- a/pom.xml +++ b/pom.xml @@ -5,9 +5,10 @@ 4.0.0 sparkjava-hello-world - sparkjava-hello-world - 1.0 + sathish + ${env.BUILD_NUMBER} war + @@ -51,10 +52,11 @@ [1.8,) + - \ No newline at end of file +