Dockerfile :
FROM tomcat:8.5
RUN apt-get update &&
apt-get install -y
net-tools
tree
vim &&
rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get purge
RUN echo "export JAVA_OPTS="-Dapp.env=staging"" > /usr/local/tomcat/bin/setenv.sh COPY sparkjava-hello-world-1.0.war /usr/local/tomcat/webapps/sparkjava-hello-world-1.0.war
EXPOSE 8080 CMD ["catalina.sh", "run"]
Create the sparkjava-hello-world-1.0.war file from the github repo https://github.com/NamrataKokate/hello-java-sample-application Create the war file and deploy the generated war file onto tomcat.
Content type
Image
Digest
Size
199.1 MB
Last updated
over 7 years ago
docker pull namratakokate/sampleapp